Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
i am using RH9. when i mount windows partions i cannot write to the partitions is logged in user is not root. i added an entry in the /etc/fstab as follows.
/dev/hda1 /mnt/win auto defaults 0 0
the things work fine if i logged as root. ie i can read/write to the windows partition(FAT32). but when i logged in as a user i can read the partition but cannot write to it. i think that the options may be changed to give write permission to all users. how can i give write permission to a mounted partion to all users.
It's umask=0.
The other 2 zeros are the ones you already had after defaults.
umask=0 sets 777 permissions for the entire filesystem.
actually it should be umask = 000 (3 octal digits)
If you're familiar with the linux file permissions you know that 777 makes the file rwx (readable, writable and executable) for user group and other. When you mount a vfat filesystem with umask=000 you get the inverse permissions for the files - 777.
It's kinda strange but that's the way it is.
Hope you understand, if you don't you should something about the linux filesystem permissions.
Yes you're right. I just wanted to show that the solution was in the umask option. I just assumed the line was correct except for the permission issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.