Re: [HS] Samba dynamique question oubliée ... Complément
On Thu, Jan 17, 2002 at 08:42:40AM +0100, Eric BERTHOMIER wrote:
> At 08:30 17/01/2002 +0100, Eric BERTHOMIER wrote:
> >J'espérais trouver une solution au niveau du groupe de A ou B i.e.
> >l'utilisateur appartient au groupe il voit le répertoire, l'utilisateur
> >n'appartient pas au groupe le répertoire est caché à l'utilisateur. J'ai
> >essayé mais pas réussi.
>
> Tout en sachant que les répertoires sont dans un même
> /home/FIC/PARTAGE
> PARTAGE contient des répertoires du groupe A et du groupe B qui doivent
> rester au même niveau de l'arborescence.
bon sang! j'admets que man 5 smb.conf est assez long à lire en entier %-),
mais en y cherchant "group", on trouve assez rapidement l'option suivante:
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.
See also force user.
Default: no forced group
Example: force group = agroup
en espérant que cela te sera utile.
--
Camille
simply the most linux - http://www.debian.org
Reply to: