FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Fedora Core 2, kernel 2.6.5-1.358. Dual boot WindowsXP and Fedora, with a small FAT32 partition set up to move files back and forth.
I have the FAT32 partition mounting off of fstab and I can read, write, rename and delete in it as root, but as a regular user, which I want to be most of the time, I can only seem to get read access.
At present, when I need to move a file into it logged in as a regular user, I am opening the Super User File Browser. Is there a way to set permissions on the mounted partition so that the user directly has full rights without having to get into any of the SU stuff????
If, logged in as root, I try right-clicking on the mounted folder, and changing the permissions (or owner) through the Property tab, the changes are not sticking or it says I'm not allowed to make them.
Change the device and the mountpoint to correspond to your system.
Having every file with the permissions of 777 looks like the result of having "umask=000". Using the option of "showexec=no" will stop everything from being marked as executable.
Since you're the only user of the system then you can use the "uid=floyd" option, or whatever your user name is, so you can change the umask to "umask=007" to remove write access from other non-user uids. Other users being the system users that are used by various programs. This has no affect on the access to the FAT32 other than in linux.
If you succeed with kernel 2.6.x please let mere mortal here know it works, as I suspect a problem in the vfat support. I trying for a week on a 2.6.6 to make it work and always get the same result - failure.
This is actually a design issue in vfat. It doesn't support Unix permissions; therefore, it will take the ownership of the user at mount time (this is why root works). Try changing your fstab entry to something like:
You need to use "umask" to control the permissions. "umask=000" grants rwx to all categories. You want to use the "rw" option too, to have it mounted as read/write. The umask=000 and rw end you up with rwxrwxrwx permissions. "root" will still show as owner and group, but you can copy a file off the VFAT drive and the owner and group will change to the user for the copy, if that is important to you. My fstab entry (that now works!!!) is:
This is like twilight zone
I could swear that yesterday didn't work no matter what I wrote in fstab and today put your entry and worked.
Don't know if matters but last night i resized that vfat partition.
You need the line in fstab when you BOOT. fstab doesn't get "loaded" when you just login/out.
Once you save your fstab with that line in it, and you do a full reboot, you won't even need to do the mount command any more. fstab will do the mounting for you at boot time, every time, and it will stay mounted even as users or root log in or out.
The umask permissions didn't get applied for you because they only get applied if they are in your fstab when you BOOT.
Thanks. That was it. Now it's working like a charm.
While were on the topic, do you know if it is possible to mount this vfat partition at the /home directory. I tried to do this (after getting the rw permissions to work) and users were no longer able to log in.
You can mount a partition in any dir you want to, but notice that mounting a partition within a directory you can no longer access the old content of the directory ( what was before mount ) until unmount that partition. Why would you mount the vfat in "/home" ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.