Access rights to vfat partitions

I'm having trouble with my access rights to my windows partitons. I want the partitions to have a user of root, a group of winusers, and for root to have all rights (7), winusers to have rw rights(6) and other users to have read rights (1). Below is my /etc/fstab. I would prefer to have a solution involving linuxconf, if possible.
/dev/hda6               /                       ext2    defaults        1 1
/dev/hda7               swap                    swap    defaults        0 0
/dev/fd0                /mnt/floppy             auto    sync,user,noauto,nosuid,nodev,unhide 0 0
/dev/cdrom              /mnt/cdrom              auto     user,noauto,nosuid,exec,nodev,ro 0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/pts                devpts  mode=0622       0 0
/dev/hda1       /mnt/win        vfat     user,noexec,nodev,nosuid,rw,conv=auto,gid=100,umask=27 1 1
/dev/hda5       /mnt/storage    vfat     user,noexec,nodev,suid,rw,conv=auto,gid=100 1 1
skiprosebaughAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dan_2228593Commented:
Hi,

as vfat does not support user/group permissions there is no way for you to directly map the permissions required, but you can do the following, which is fairly close to what you want:

have a user (e.g. winusers) with umask 002 mount the partition (e.g. /mnt/win), and add users to the winusers group, so now those in winusers can read/write to the partition.

root can read/write the partition no matter who mounts it so that's no problem, and other users can only read the files due to the 2 in the winusers' umask (effectively setting the perms for other to rx)

there is no difference between access rights 7 and 6, in terms of execution of programs on /mnt/win (since you really can't) but there is a difference in accessing directories - that's what the x is for when it comes to directory perms.

as for linuxconf... err, I don't use it, i use vi :) but you can do the above with linuxconf alone, pretty much.

feel free to ask me if you have any more queries.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
skiprosebaughAuthor Commented:
These partitions are automagically mounted at boot time. Will this have to be done each time, or will the user not switch to root?
0
dan_2228593Commented:
if you want it to be mounted with the right options when it boots, have

auto,uid=0,gid=1234,umask=002

as your options in /etc/fstab, in addition to what you already (or replacing old values)

where 1234 is the gid of your winusers group.

so your partition will now be automatically mounted on startup, have root as the owner with rwx perms, have winusers as the group owner with rwx perms as well, and let all others have read access.
0
skiprosebaughAuthor Commented:
I will have to test this. I'll get back to you as soon as I can
0
skiprosebaughAuthor Commented:
Hey, it worked! Great job!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.