Re: Permissions on a vfat partition
--- kenneth dombrowski <kenneth@ylayali.net> escribió:
> On 03-08-23 03:30 +0200, Roberto Sanchez wrote:
> > You are not telling it who owns all the files. FAT has no concept of
> users,
> > groups, or other attributes (aside from RW and RO). You must specify the
> UID
> > or GID (uding gid=xxxx) you want assigned to all files on the file system
> when
> > it is mounted.
> >
> > /dev/hda7 /mnt/d vfat rw,user,uid=1000,noexec 0 0
> >
>
> that is, if you're concerned about restricting access at all, correct?
>
> I've seen this response before & have always been a little confused. I
> dual boot a laptop with win2k & just have the following in my /etc/fstab
>
> /dev/hda1 /windows vfat noauto,user 0 0
>
> I can `mount /windows` and write to it just fine
>
> kenneth@enlil:~$ echo "test">/windows/test.txt
> kenneth@enlil:~$ ls -l /windows
> [ ...other stuff.. ]
> -rwxr--r-- 1 kenneth kenneth 5 Aug 23 00:46 test.txt
>
> I don't think I'm in any special windows-writing groups:
> kenneth@enlil:~/tmp$ groups
> kenneth adm cdrom audio www-data src video xcdwrite scsi www-adm
>
> for a laptop nobody else in the world is ever going to use, just
> specifying 'user' is fine.. right?
>
> (I've given this out as advice before, so I just want to clarify, but if
> I'm correct, the OP may be interested too)
>
> thanks,
> Kenneth
>
You are also correct. If you use the "user" option, then whoever mounts the
partition gets ownership, but then you must also use "noauto," otherwise the
partition is mounted on boot and is owned by root.
-Roberto
___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es
Reply to: