Simple problem FSTAB File - User settings 'uid=xxx'
I am still learning so please be nice to me :)
When I mount the HD I want more than one person to be able to write from WinXP (samba). I have put one user (see below) in fstab 'uid=501', which works. How to I also include user 502. I do not know how to write it (format). Been trying different things. /dev/hda5 /fat32/archive vfat defaults,uid=501 0 0 thanks crazyswede |
Use gid=xxx. This will allow you to place particular members in the group and give them permissions to the drive. This is the linux method of Access Control Lists.
Mandrake has a group set up for this. It is called fileshare. Adding users to this group, and using gid=fileshare option will give these members full access to the mounted partition. note: In my fstab, I have my user name spelt out. I assume this also works for group idīs also, but I havenīt tried it. For a vfat drive with user access, you may want to also use the nodev option. |
I have set up the group id before and I tried it again and it does not work :(
It only works if I put uid=501 or uid=502 but not with gid=100 (which is the group id. How can I do 'uid=' which includes both 501 and 502> What is 'nodev'? |
Are you certain that both users are members of group gid=100. Do you have Ļumask=0Ļ option on the line? Try using names instead of numbers in the gid= and uid= entries.
nodev Do not interpret character or block special devices on the file system. |
They are all the in the same group...mmm.
I removed unmask before... I will put it back and try again. Even if I use names for uid= ... how do I put multple user names? |
I got it working now... thank you very much for your help :)
I got it working using gid= ....but one problem that slowed me down was that I wrote 'unmask=000' instead of 'umask=000' :o |
The answer to your question about more then one uid= entry, I don't think that would work. More than one user is a group of users. That is what groups are for! Access is controlled when you determine who is in the group. You may want to use your own username in the uid= entry. Also, come to think of it, you want to change the umask to 007 to deny all access to others.
Another thing, make sure you create the group before you enter the gid= entry. |
Quote:
...and I thought that I was clever :rolleyes: |
All times are GMT -5. The time now is 05:39 PM. |