[Samba] Problems of groups accessing shared directory

Qonita niet at cs.ui.ac.id
Thu Oct 31 08:46:00 GMT 2002


thx to Dimitrios & Simon.
What a prompt response. It really does work!
Never really thought of using sticky bit..

-Qonita
----- Original Message -----
From: "Simon Hobson" <shobson-lists at colony.com>
To: "Qonita" <niet at cs.ui.ac.id>; <samba at lists.samba.org>
Sent: Thursday, October 31, 2002 15:33
Subject: Re: [Samba] Problems of groups accessing shared directory


> Qonita wrote:
>
> >3. In the linux system, the directory /home/pub/ourdir is chown to root
and
> >chgrp to "special". The permission is 775, so that anyone belong to the
> >"special" group has full control to the directory.
> >drwxrwxr-x     12 root    special    4096  Oct 29 17:15  ourdir
> >
> >Problems came when person1 put/edit a file via samba (Windows Explorer),
the
> >ownership of the file is person1.group1, instead of person1.special. In
this
> >case, person4.group2 cannot edit the file (doesn't belong to the same
> >group).
> >How to make all files written or edited always belonging to group
"special"?
> >I have tried "force group = special" but it turned out anyone has access
to
> >the directory, eventhough they're not listed as member of group "special"
in
> >/etc/group.
>
> After setting the group ownership, also set the sticky bit, ie :
>
> chmod g+s <directory>
>
> This tells Linux to use the group name of that directory, rather than
> the primary group of the user, when creating new files.
>
> Simon
>
> --
> Simon Hobson, Technical Services Engineer
> Colony Gift Corporation Limited
> Lindal in Furness, Ulverston, Cumbria, LA12 0LD
> Tel 01229 461100, Fax 01229 461101
>
> Registered in England No. 1499611
> Regd. Office : 100 New Bridge Street, London, EC4V 6JA.
>




More information about the samba mailing list