View previous topic :: View next topic |
Author |
Message |
frippz Guru
Joined: 22 Aug 2002 Posts: 460 Location: Sweden
|
Posted: Wed Nov 20, 2002 5:44 am Post subject: Multiple users and permission problems |
|
|
Just finished a thorough search of the forums looking for a solution to my problem, but since I couldn't find anything, I'm posting it myself.
I recently installed Gentoo on a server for my friends. They are using it as a fileserver with ProFTPd and Samba etc. There are three of them using it so I of course wanted to create three accounts for them. Now this server has three hard disks installed; a 60 GB and two 120 GB. The smallest one holds the standard partitions which of about 51 GB is mounted in /home. The other two 120GB drives are mounted in /mnt/hdc1 and /mnt/hdd1 (I couldn't come up with a better way to mount them, so if you got any suggestions please tell me). Now in order for all three to be able to access the drives i used mount --bind to mount these two folders in each of the users home directories as follows:
Code: |
/dev/hda3 on / type ext2 (rw,noatime)
/dev/hda4 on /home type ext2 (rw,noatime)
/dev/hdc1 on /mnt/hdc1 type ext2 (rw)
/dev/hdd1 on /mnt/hdd1 type ext2 (rw)
/mnt/hdc1 on /home/greyfox/disk1 type none (rw,bind)
/mnt/hdd1 on /home/greyfox/disk2 type none (rw,bind)
/mnt/hdc1 on /home/silver/disk1 type none (rw,bind)
/mnt/hdd1 on /home/silver/disk2 type none (rw,bind)
/mnt/hdc1 on /home/monkey/disk1 type none (rw,bind)
/mnt/hdd1 on /home/monkey/disk2 type none (rw,bind)
/mnt/hdc1 on /home/levi/disk1 type none (rw,bind)
/mnt/hdd1 on /home/levi/disk2 type none (rw,bind)
|
Now to my problem; all of the users have of course permissions to write to these disks. But whenever a user is creating a folder, the other users can't put files in them. I was hoping that I didn't have to create one single account for them to use whenever accessing via Samba. Or maybe that is the best way?
By the way, here's a snapshot of the permissons of the mounted drives:
Code: |
drwxrwxr-x 10 root wheel 4.0K Nov 18 20:18 hdc1
drwxrwxr-x 9 root wheel 4.0K Nov 19 03:38 hdd1
|
As I said earlier, if anyone has a better recommendation on how to mount those 120-disks, please tell me!
Btw, I hope I have posted this in the right forum. Otherwise a moderator will have to move it. |
|
Back to top |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Wed Nov 20, 2002 11:47 am Post subject: |
|
|
you might want to try the "umask" command, it sets the mask of rights which is applied to new files. In samba its very easy, use forece create mode and the corresponding directory option ... |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|