[wellylug] accessing vfat partition
Ewen McNeill
wellylug at ewen.mcneill.gen.nz
Sun May 2 23:26:19 NZST 2004
In message <4094C331.2050207 at paradise.net.nz>, Lyndsay Mountfort writes:
>The line from /etc/fstab is:
>/dev/hda5 /win_d vfat defaults,noauto 0 0
If it's just you using the machine try something more like this:
/dev/hda5 /win_d vfat user,noauto,nodev,noexec,uid=NNN,gid=MMM 0 0
where NNN is your user id (obtained with eg,
awk -F : "/${LOGNAME}:/ { print \$3; }" /etc/passwd
) and MMM is your group id (obtained with, eg,
awk -F : "/${LOGNAME}:/ { print \$4; }" /etc/passwd
).
If there are more people that need access, then set up a group for
access to the windows drive, set that gid value in the line above, and
set a umask=0007 parameter too.
(The umask=0000 approach will work too, but I don't recommend it as it
means _any_ user id on your machine can read/write to the drive,
including ones which are supposedly "non privileged" like nobody. It
increases the risk of a break in to a supposedly unimportant account.)
Ewen
More information about the wellylug
mailing list