From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200205020059.g420xkvQ012820@ducky.net> To: 9fans@cse.psu.edu From: Mike Haertel Subject: [9fans] getting at Windows files from VMware-hosted Plan 9 Date: Wed, 1 May 2002 17:59:46 -0700 Topicbox-Message-UUID: 83c3379a-eaca-11e9-9e20-41e7f4b1d025 First of all, here is a cute 1-liner for running u9fs without inetd (useful if your local system administrator refuses to run u9fs from inetd, or you hate rhosts-style authentication, or whatever...) % ssh myname@remotehost u9fs -a none -u myname <[0=1] | echo 0 > /srv/remotehost % mount /srv/remotehost /n/kremvax I thought people might be interested in how I'm using this: I have an ssh daemon running on my Windows box at work, courtesy of Cygwin. I run Plan 9 under VMware on the same box. I ported u9fs to Windows, again courtesy of Cygwin. (Main changes: Cygwin has no setre[ug]id(), no ruserok(), no , and no pread()/pwrite(). Diffs available upon request.) So, in my VMware-hosted Plan 9 running under Windows, I do the following: % ssh Administrator@windows u9fs -a none -u Administrator <[0=1] | echo 0 > /srv/windows % mount /srv/windows /n/kremvax % bind /n/kremvax/cygdrive/c /n/c and thus I can use /n/c from VMware to look at the windows partition, just as if Plan 9 were running on the bare hardware. Moreover, this hack allows Plan 9 to see the contents of any SMB file server that the host Windows environment can access. Very useful if you're stuck in a mixed network of evil operating systems.