problems in mounting vfat volume with the right user permisisons
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
problems in mounting vfat volume with the right user permisisons
Hi everybody
I have this problem when i mount my external harddrive-a Western Digital, 320 gigabyte.
I have configured my fstab as follows:
/dev/sdb1 /media/My_Book vfat user,auto,uid=1001,umask=000 0 0
This configuration works fine, however i want to change the user permissions to 777 for one of the directories "X" on my WD. I am not able to change the user permissions with the chmod command and as far as i have understood it is actually impossible. So how do i manage to mount me device with uid=1001 and umask=022 but at the same time i want to be able to chang e the user settings for directorei "X" to 777...
So how do i manage to mount me device with uid=1001 and umask=022 but at the same time i want to be able to chang e the user settings for directorei "X" to 777...
I do not think you can change permissions of files and directories on a vfat partition because the file system does not support *nix style permissions. You can probably look this up using google.
I do not think you can change permissions of files and directories on a vfat partition because the file system does not support *nix style permissions. You can probably look this up using google.
Indeed...to elaborate a little about that
Chmod won't tell that, you can run chmod -v 644 file over vfat and it'll say that successfully changed mode to (rw-r--r--), but, that change never happen actually. The effectives permitions are setted by the options during mount on the partition.
Ok..so if i get it rigth it is not possible for me to change the file permissions, since these are strictly determined by the umask command in my fstab file.
what would you recommend if you wanted the entire partition to be rwxr-xr-x except for a single directorie which should have the settings rwxrwxrwx?..should i switch file system or something like that?
By the way what is the difference between umask=000 and umask=0000?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.