Re: file permissions and /etc/fstab



Ash wrote:

Yeah. I dual boot with Windows XP, and the Downloads partition is FAT.
Up until now, I've been using sudo nautilus to change my files. I'm
using Fedora Core 5, and my current entry for /dev/hda5 is something
like :

/dev/hda5 /Downloads Defaults 0 0

$ man mount
....
Mount options for fat
(Note: fat is not a separate filesystem, but a common part
of the msdos, umsdos and vfat filesystems.)
....
uid=value and gid=value
Set the owner and group of all files. (Default: the
uid and gid of the current process.)

umask=value
Set the umask (the bitmask of the permissions that
are not present). The default is the umask of the
current process. The value is given in octal.

fat has no idea of access permissions so they are set at the mount time via the umask option. If the partition is automounted at boot, then uid=0 (root), gid=0 (root), umask=002 (rwxrwxr-x) - as that'll be the values of the mount process.

I have my fat partitions set up viz:

/dev/hda1 /win/c vfat uid=0,gid=499,umask=002 0 0

and I put all those users I want to allow to write to it into my vfat group (gid=499).

The easiest suggestion I can give you, is to add umask=0 (= rwxrwxrwx) which means anyone can write there, viz:

/dev/hda5 /Downloads vfat umask=0 0 0

.



Relevant Pages

  • Re: evangelizing linux not needed
    ... Both should be umask (do a "man mount" to see mounting options). ... an installer to guess things for you. ... used for your stock kernel. ...
    (alt.os.linux)
  • mount -t vfat /dev/ram0 /mnt/test0
    ... I want to mount my RAM disk by FAT filesystem. ...
    (comp.os.linux.misc)
  • Re: Recovering a vfat partition
    ... you need to restore the boot sector. ... FATs differ, ... And now when I try to mount the image, ... Can't find a valid FAT filesystem on dev loop1. ...
    (comp.os.linux.hardware)
  • Re: cCannot mount floopy Suse 9 Prof
    ... > Could not mount device. ... kernel doesn't know how support a FAT filesystem. ... Isn't the ability to support FAT something that can be selected during ...
    (alt.os.linux.suse)
  • Re: Recovering a vfat partition
    ... you need to restore the boot sector. ... FATs differ, ... And now when I try to mount the image, ... Can't find a valid FAT filesystem on dev loop1. ...
    (comp.os.linux.hardware)