Question about SAMBA on Gentoo...

GTaudiophile

Lifer
Oct 24, 2000
29,767
33
81
I am currently running SAMBA server on my Gentoo box. When I set it up, I set it up with one login/password, and it only server my desktop (not shared with anyone else).

Now, let's say I wanted to share a Gentoo/SAMBA box with 10 people, and each person had their own "account" with 20GB of space. 1) Is it possible to set up multiple accounts like that? 2) Can you specificy the max size of each account?

I want person X to see shared drive X with 20GB and person Y to see shared drive Y with 20GB. I don't want person X to see/have access to shared drives X-Z, etc.

 

EatSpam

Diamond Member
May 1, 2005
6,423
0
0
The file system security is easy. Just chown and chmod to the right users and permissions.

The other thing you need is a quota system which is usually done at the file system level. No clue on that one. :) Maybe google "Linux quotas".
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
enable home directories, and then they will only have access to their own home directory. You don't have to have a seperate section for each, there is a universal home section that applies to all users. man samba.conf
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
AFAIK Linux quotas only work at the filesystem level, not directory level. So If you want them to only have 20G of space you'll have to make sure they can only get to one filesystem.

And as for accounts, if you create a local unix account and then use 'smbpasswd -a to create the Samba password you'll be good.