can't even read from fat32 partition...except sometimes!?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
This never used to happen! (I only switched it to fat32 so that I can play my music from windows as well.) Root can access rwx it just fine, of course... but the behavior from another user is bizarre:
~$ cd /usr/share/yasgur/Led\ Zeppelin/IV/
-bash: cd: /usr/share/yasgur/Led Zeppelin/IV/: Permission denied
~$ cd /usr/share/yasgur/Led\ Zeppelin/
-bash: cd: /usr/share/yasgur/Led Zeppelin/: Permission denied
~$ cd /usr/share/yasgur/
-bash: cd: /usr/share/yasgur/: Permission denied
it has to do with the permissions: FAT32 cannot store permission information, so the permissions are set at mount time. Because your /usr/share/yasgur is drwxr--r-- you (as normal user) can Read that directory (i.e. its contents), but you cannot cd into it (because the X permission is not set, only for root).
X for files means the may be executed; X for directories means you can cd into them.
If you want all users to have full read permission, change the line in /etc/fstab to "/dev/hdb2 /usr/share/yasgur vfat defaults,umask=022 1 0". Then all directories (and files) will show up as being rxwr-xr-x. If you want to give everyone write permission, then use umask=000.
You'll need to unmount and remount the partition for the changes to take effect.
No problem -- it's a little known thing, 'cos mostly when you mkdir a new directory x is already set...
nukkel
P.S. If you don't want all users to access the dir, you can use uid=... and gid=... options in /etc/fstab to set the user and group, instead of the default (root). But it needs numerical values however
E.g. I have a vfat partition as well and created a separate group for it, then using umask=007 all users you put in that group have full access
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.