[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: samba e "force group ="



Il 04/08/2010 20:46, Pol Hallen ha scritto:
'sera a tutti :-)

rispolverando samba mi è venuto un dubbio:

se una share samba ha l'opzione

force group = test

nel mount dei client dovrei avere un gruppo test e specificargli il gid?

perchè sembra che se non specifico il gid, in locale il gruppo della share di samba corrisponde non a quella ereditata dal server (test) ma al gruppo locale.

E' così o mi è andato in pappa il cervello?

grazie :-P

Pol
http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html
force group (S)
This specifies a UNIX group name that will be assigned as the default primary group for all users connecting to this service. This is useful for sharing files by ensuring that all access to files on service will use the named group for their permissions checking. Thus, by assigning permissions for this group to the files and directories within this service the Samba administrator can restrict or allow sharing of these files. In Samba 2.0.5 and above this parameter has extended functionality in the following way. If the group name listed here has a '+' character prepended to it then the current user accessing the share only has the primary group default assigned to this group if they are already assigned as a member of that group. This allows an administrator to decide that only users who are already in a particular group will create files with group ownership set to that group. This gives a finer granularity of ownership assignment. For example, the setting force group = +sys means that only users who are already in group sys will have their default primary group assigned to sys when accessing this Samba share. All other users will retain their ordinary primary group. If the force user parameter is also set the group specified in force group will override the primary group set in force user.
    Default: force group =
    Example: force group = agroup


Ho usato l'opzione force group e force user in una condivisione samba interna aperta a tutti per fare in modo che per tutti gli utenti che scrivessero nella directory condivisa sul server venisse assegnato un gruppo specifico e un utente specifico, altrimenti tutti i file scritti da computer con xp prendevano l'utente noname e gruppo noname, e dal server si vedevano solo se eri l'utente root.
Non saprei su client linux come funzioni, in quanto non l'ho mai usata.

ciao
Beppe

--
le nuvole non hanno regole,
perchè non hanno mai rinunciato
alla libertà di sognare.


Reply to: