This is a discussion on Re: VFAT issue upgrading from slackware 10.2 to 11.0 within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> On 2007-07-18, George <romans5_8@earthlink.net> wrote: > fresh with a 11.0 install I can no longer modify files on the ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On 2007-07-18, George <romans5_8@earthlink.net> wrote: > fresh with a 11.0 install I can no longer modify files on the VFAT > system unless I am logged in as root. > > Does anyone know the best settings for the fstab for the vfat drive so > that I can put my cvs directory on it. I would move the cvs to a linux > drive but the vfat drive is much bigger. permissions for a partition can be set with umask parameters in fstab. It typically looks something like this: /dev/hdc1 /mnt/hd vfat defaults,umask=022 1 0 This means permissions for /mnt/hd are 755, the inverse of 022. See man mount and man umask. nb |
| |||
| notbob wrote: > permissions for a partition can be set with umask parameters in fstab. > It typically looks something like this: > > /dev/hdc1 /mnt/hd vfat defaults,umask=022 1 0 > > This means permissions for /mnt/hd are 755, the inverse of 022. See > man mount and man umask. better yet, set fmask and dmask separately. with umask=022, all files on the vfat fs are executable, which is most likely not what you want. i mount vfat file systems (on usb devices) with the following options: uid=joost,gid=users,fmask=133,dmask=022 this way, all files and directories are owned by user "joost" (me ;-) and belong to the group "users"; directories have permissions 755 (which makes them executable, i.e. accessible), while files have permissions set to 644, so that they are not executable. -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9) |
| |||
| On 2007-07-18, Joost Kremers <joostkremers@yahoo.com> wrote: > better yet, set fmask and dmask separately. with umask=022, all files on > the vfat fs are executable, which is most likely not what you want. i mount > vfat file systems (on usb devices) with the following options: > > uid=joost,gid=users,fmask=133,dmask=022 > > this way, all files and directories are owned by user "joost" (me ;-) and > belong to the group "users"; directories have permissions 755 (which makes > them executable, i.e. accessible), while files have permissions set to 644, > so that they are not executable. That's even better. Wasn't aware of those. Thanks, Joost. nb |
| ||||
| On 2007-07-18, Joost Kremers <joostkremers@yahoo.com> wrote: > notbob wrote: >> permissions for a partition can be set with umask parameters in fstab. >> It typically looks something like this: >> >> /dev/hdc1 /mnt/hd vfat defaults,umask=022 1 0 >> >> This means permissions for /mnt/hd are 755, the inverse of 022. See >> man mount and man umask. > > better yet, set fmask and dmask separately. with umask=022, all files on > the vfat fs are executable, which is most likely not what you want. i mount > vfat file systems (on usb devices) with the following options: > > uid=joost,gid=users,fmask=133,dmask=022 > > this way, all files and directories are owned by user "joost" (me ;-) and > belong to the group "users"; directories have permissions 755 (which makes > them executable, i.e. accessible), while files have permissions set to 644, > so that they are not executable. Yes, much better. Also see http://slackwiki.org/Windows_Partitions for a bit more discussion of dmask and fmask options. RW |