LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Simple problem FSTAB File - User settings 'uid=xxx' (https://www.linuxquestions.org/questions/linux-networking-3/simple-problem-fstab-file-user-settings-uid%3Dxxx-146645/)

crazyswede 02-16-2004 04:32 AM

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

jschiwal 02-16-2004 04:48 AM

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.

crazyswede 02-16-2004 09:17 AM

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'?

jschiwal 02-17-2004 03:10 AM

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.

crazyswede 02-17-2004 05:53 AM

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?

crazyswede 02-18-2004 04:14 AM

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

jschiwal 02-19-2004 12:57 AM

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.

crazyswede 02-19-2004 03:59 PM

Quote:

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! :o :D

...and I thought that I was clever :rolleyes:


All times are GMT -5. The time now is 05:39 PM.