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.
Distribution: Mandrake 10.1 Community on athlon XP2000+
Posts: 24
Rep:
changing permission of files on vfat hd.
hi people, i have 2 hd's in my machine, one is partitioned for windoze and linux, the other is just a vfat data hd. now the problem is that i can not write to the second hd when logged in as a user, as all permissions are set to root. now when i log in as root, and just right click and hit properties on any of the directories, i can view the permissions, but cant change them, if i change the ownerships, it tells me i dont have enough access to do it, and if i change any of the check box things, as soon as i close the properties box it re-sets to how it was before.
now im completely stumped as to why it wont let me change this, everything in fstab is right as far as i can tell... or at least is the same as for the windoze partition and it will let me write to that.... so any ideas guys?
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748
Rep:
That's because vfat doesn't have any real permissions. Whatever you mount the drive as (or how it's set up in /etc/fstab) is what you get for permissions. This is a windows problem without much of a work around. Either you mount it so a certain group of users (create a new group that only has write permission on that mount point, then add trusted users to that group--not much of a solution, security wise) can change the files, or you prevent everybody except root from changing those files.
On the upside, this is a real eye opener for people who assumed that their windows systems were secure. Basically, if you can write to any part of a windows partition, you can do anything on a win9X box, despite half-hearted attempts to make it seem secure.
The reason that the permissions don't permanently change as root is because there is nothing to change.
For vfat mounts, you need to use the uid= and gid= options to set permissions. This is true for some other types of filesystems also. This is because the Fat32 filesystem is not a native unix file system and so doesnīt have uid and gid settings saved. Therefore the options are set in the mount command.
One thing that I learned recently, is that you can enter a user or group name in leu of the uid or gid number. I like this because you donīt have to look up uid and gid numbers.
If you have two users, jsmith and mjones, who you want to allow access to a partition with mp3 files in it, you could create a new group called mp3fileshare. Then make jsmith and mjones members of this new group. Add the option gid=mp3fileshare to the fstab entry for this partition, and change the umask=000 entry to umask=007. This will give full access to the drive to the owner, and the group members, and deny all read, write & execute rights to everyone else (except root of course).
Distribution: Mandrake 10.1 Community on athlon XP2000+
Posts: 24
Original Poster
Rep:
ok, im really confused.... not by what you guys have said, but by the fact that my computer has decided to fix itself just by being turned off.... god knows whats going on but thanks for your help guys.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.