Unix Technical Forum

Re: VFAT issue upgrading from slackware 10.2 to 11.0

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 05:12 AM
notbob
 
Posts: n/a
Default Re: VFAT issue upgrading from slackware 10.2 to 11.0

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 05:12 AM
Joost Kremers
 
Posts: n/a
Default Re: VFAT issue upgrading from slackware 10.2 to 11.0

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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 05:12 AM
notbob
 
Posts: n/a
Default Re: VFAT issue upgrading from slackware 10.2 to 11.0

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 05:14 AM
Robby Workman
 
Posts: n/a
Default Re: VFAT issue upgrading from slackware 10.2 to 11.0

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com