Simple problem FSTAB File - User settings 'uid=xxx'
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
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.
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.
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.
Originally posted by jschiwal 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.
That logic suddenly hit me when I was messing around with the settings before!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.