Re: Problem writing to VFAT partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



awrobinson@xxxxxxx wrote:

I want to be able to write to a VFAT partition as a "regular" user but haven't figured out how to do so.


[snip]

When I try to make the the mount point group-writable with "chmod 775 /mnt/FAT", I get this result:

chmod: changing permissions of `/mnt/Xtra-FAT' (requested: 0775, actual: 0755): Operation not permitted


That's because fat and vfat file systems don't really have access control. You can control access to the whole partition with the uid, gid and umask mount options.

For example, I have

/dev/hda6 /mnt/fat vfat uid=500,gid=500 0 0

in my /etc/fstab which gives me access to /mnt/vfat. I can change the permissions from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx) by adding "umask=0" to the list ofoptions. Don't be tempted to put "umask=0111" to remove the execute bit otherwise you won't be able to opten files -- directories need the "x" bit set. If you want to disable execution of images on that partition, add "noexec" to the options.

jch


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux