Setting up groups and related shares


(Thorsten) #1

Hi everybody,

this is just a request for confirmation, as I am used to a different behavior of Samba.

I want to set up a user group, e.g. “parents”, “kids” of “family”. Each group will be populated with respective users, e.g. “mum”, “dad”, “son1”, “son2” and “daughter”. Each user shall have his own user share.
I guess, Nethserver does not know nested groups, e.g. “family” consists of “parents” and “kids”, correct?
In the second instance, I want to create a share called “parents” with “parants” as the owner group. This seems not to be possible, is it? Nethserver tells me, that there is already an object with the same name available. Are these shares already created with the group which will be the owning group? If so, I do not find this group to be populated with users.

THX
Thorsten


(Stefano) #2

shares, users and groups are all in the same configuration db (search here and in documentation for the meaning of DB in NS’ way)… so you can’t have 2 entities with the same name…

you can’t have nested groups indeed


(Thorsten) #3

Hi Stefano,

this already means that the user “foo” can not have a share called “foo”, too, correct?

THX
Thorsten


(Stefano) #4

yes, you’re right…
and this is correct in an user’s perspective, since you’ve the user home dir already shared…

But I understand that the group/shares thing can be trickie to understand :wink:


(Thorsten) #5

Ok, understood, but this is what i wanted: If the users home dir is already shared, this is fine. I feard a vice versa approach - which would be really stupid:

The user’s home dir is not shared and an alternative share had to be created for each user.

But derived from that my initial (wrong) conclusion was: a group will have an own share as well - a cool Feature treating Groups and users in the same way: create a group and a Groups share is created in parallel…

Best regards
Thorsten


Permit to have the same name for shared folders and user/group
(Stefano) #6

no…

users have their own homedir automagically shared, groups no…

you’ve to create shares with different names and give them the right ownership