On Fri, 5 Jun 2009 16:14:51 +0800
sqweek <sqw...@gmail.com> wrote:

> 2009/6/5 Ethan Grammatikidis <eeke...@fastmail.fm>:
> > the guest sees all user/group names as unknown/unknown, preventing writing.
> 
>  incorrect diagnosis.
> 
> cpu% ls -ld /mnt/term/home/sqweek/tmp
> d-rwxrwxr-x M 68780 unknown unknown 4096 Jun  5 16:07 
> /mnt/term/home/sqweek/tmp
> cpu% touch /mnt/term/home/sqweek/tmp/lol
> cpu% ls -l /mnt/term/home/sqweek/tmp/lol
> --rw-rw-rw- M 68780 unknown unknown 0 Jun  5 16:11 
> /mnt/term/home/sqweek/tmp/lol
> 
> -sqweek
> 

You're right. My lib/profile contained the following:

vxdir = /mnt/term/trees/x86-chroot/home/ethan/plan9/home
if (test -e $vxdir) {
        bind $vxdir $home/9vx-home
}

I was doing this:

sauvo> cd 9vx-home/
sauvo> echo foo > bar
bar: rc: can't open: 'bar' mounted directory forbids creation

I guess I assumed that error was global, as it would have been if I'd used 
Linux mount --bind. Sorry about that. Not off to a good start am I? :) I've 
fixed my profile & re-started drawterm & now everything's normal.

New question:
New files created under /mnt/term have permissions 0666, or 0777 for 
directories. Can I make the default not world-writable?

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

Reply via email to