[wellylug] accessing vfat partition
Darryl Hamilton
wellylug at addict.net.nz
Mon May 3 10:21:32 NZST 2004
Ewen McNeill wrote:
> 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
> ).
Or, you could use the 'id' program, which should give you your user and
group id numbers and names, eg
[lordp at zuul]
[ ~ ]$ id
uid=1000(lordp) gid=100(users) groups=100(users)
More information about the wellylug
mailing list