from /etc/fstab:
/dev/hde3 /media/i ntfs-3g
defaults,locale=en_US.utf8,uid=0,gid=1002,umask=0007 0 0
/dev/hde5 /media/f vfat
rw,uid=0,gid=1002,umask=0007 0 0
>From /etc/group:
mounts::1002:koder
Problem:
friends@xenon:/media/i$ groups
friends audio video
friends@xenon:/media$ ls -l
drwxrwx--- 1 root mounts 12288 2006-11-23 17:33 i
drwxrwx--- 2 root mounts 4096 2006-11-29 18:46 test
friends@xenon:/media$ cd test
bash: cd: test: Permission denied
friends@xenon:/media$ cd i
friends@xenon:/media/i$
>From the cd onward, user 'friends' (group NOT mounts) can read and write
to the 'i' ntfs-3g mount freely (even though he shouldn't be able to do
so), thus defying the 0007 mount option (which translates to 0770 in
'chmod' octals). The 'defaults' option doesn't make a difference
either.
root@xenon:/etc# uname -a
Linux xenon 2.6.17-10-generic #2 SMP Fri Oct 13 18:45:35 UTC 2006 i686
GNU/Linux
It's unlikely that it's a kernel issue, as the permissions work fine for
the vfat mount.
It's the 2006.09.20 build for debian (well ubuntu actually), but since
there wasn't mention of fixing the umask option on anything after 9/20
in the changelog, I'm simply assuming it wasn't fixed or was broken
starting with the 9/20 release's mention of a umask fix. Please smack
me and correct me if I'm definitively wrong and this is old news.
Thanks for looking into it =)
-Kurt
|