9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Drawterm /mnt/term permissions issue
@ 2009-06-04 23:58 Ethan Grammatikidis
  2009-06-05  0:23 ` Russ Cox
  2009-06-05  8:14 ` sqweek
  0 siblings, 2 replies; 8+ messages in thread
From: Ethan Grammatikidis @ 2009-06-04 23:58 UTC (permalink / raw)
  To: 9fans

I run a plan 9 cpu server in Qemu and use drawterm to connect from the Linux host.  I thought the /mnt/term mechanism would be very convenient for exchanging files between host & guest, but the guest sees all user/group names as unknown/unknown, preventing writing.

Within drawterm:

sauvo> echo $user
ethan
sauvo> cd /mnt/term/home/ethan/tmp
sauvo> ls -l
d-rwxr-xr-x M 80 unknown unknown 4096 Jun  4 19:52 glibc-2.9
--rw-r--r-- M 80 unknown unknown 5539 Jun  2 21:57 installed
sauvo>

In Linux:

ethan@vardo $ pwd
/home/ethan/tmp
ethan@vardo $ ls -l
total 12K
drwxr-xr-x 67 ethan ethan 4.0K 2009-06-04 19:52 glibc-2.9/
-rw-r--r--  1 ethan ethan 5.5K 2009-06-02 21:57 installed
ethan@vardo $

Is this a drawterm issue? If so...

I can understand drawterm mapping most user & group names to unknown, but shouldn't I be able to write to my own files? This could be solved if drawterm mapped the username of the running user to that of the logged in user.

To illustrate how I think that mapping would appear in use, if my username on my Linux box was was "geoff", and used drawterm to log in to a plan 9 machine as user bootes the above example would appear as follows:

plan9host> echo $user
bootes
plan9host> cd /mnt/term/home/geoff/tmp
plan9host> ls -l
d-rwxr-xr-x M 80 bootes bootes 4096 Jun  4 19:52 glibc-2.9
--rw-r--r-- M 80 bootes bootes 5539 Jun  2 21:57 installed

geoff@linuxbox $ cd ~/tmp
geoff@linuxbox $ ls -l
total 12K
drwxr-xr-x 67 geoff geoff 4.0K 2009-06-04 19:52 glibc-2.9/
-rw-r--r--  1 geoff geoff 5.5K 2009-06-02 21:57 installed

--
Ethan Grammatikidis
The lyf so short, the craft so long to lerne. -- Chaucer



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-06-06 18:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-04 23:58 [9fans] Drawterm /mnt/term permissions issue Ethan Grammatikidis
2009-06-05  0:23 ` Russ Cox
2009-06-05  5:20   ` Ethan Grammatikidis
2009-06-06 18:39     ` Skip Tavakkolian
2009-06-05  5:23   ` Ethan Grammatikidis
2009-06-05  5:40     ` erik quanstrom
2009-06-05  8:14 ` sqweek
2009-06-05 13:09   ` [9fans] I fail at bind WAS: " Ethan Grammatikidis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).