Eilert Brinkmann wrote:
"Paul W. Abrahams"
wrote:
This problem keeps coming up. There are really two parts to it. To be able to write to a Windows partition, you need to include the magic incantation `umask=0' in the /etc/fstab line that references the partition.
Using the options `uid=...' and/or `gid=...', too, it is also possible to restrict access to the vfat partition to a specific user or group. E.g., the options `gid=100,umask=002' will permit write access for owner (still root) and group (100=users), while others may only read.
That could be useful, but it's not the same thing as per-file or per-directory control.
As to owner/group, you can't change it because Windows filesystems don't record it; but there shouldn't be any ill consequences to the occasional error messages.
The error messages when trying to change permissions, ownership or dates of files on vfat partitions can be suppressed by using the mount option `quiet'. Then such attempts will be silently ignored.
I think it's possible to change read/write permissions on individual files, but I'm not sure about that. It's easy to test, though.
I wish there was some way of publicizing the `umask=0' incantation so that people wouldn't have to keep asking about it. I certainly don't blame you for not knowing about it.
Well, this options are documented in the man page for mount (section "Mount options for fat"). Unfortunately this is a place where many people don't find this information. (I had to answer questions concerning this problem more than once...) As many users want to mount vfat partitions, this issue should also be described in the printed manual. (I don't know if the SuSE manual mentions it.)
I chose the word `publicizing' carefully. Yes, it is documented, and probably even documented in more than one place. The problem is that it's not documented in the places where people look for the information when they discover that their vfat partitions aren't writable. By the way, why do you prefer `umask=007' over `umask=0'? You're a James Bond fan, perhaps? Paul Abrahams -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/