• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Question about SAMBA on Gentoo...

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.

 
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".
 
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
 
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.
 
Back
Top