[Samba] Automatically add group

steve steve at steve-ss.com
Wed Aug 20 03:53:35 MDT 2014


On Mon, 2014-08-18 at 08:06 +0700, Duong Manh Hung wrote:
> Dear All.
> 
> I have a file server. I installed the samba on it to store the document.
> See below for the security :
> 
> - group :
> 
>     + g1 : user1, user2,user3
> 
>     + g2 : user4, user5,user6
> 
>     + g3 : user1,user5
> 
> - folder :
> 
>    + folder A : set permission chmod 775   and  group chown root:g3
> 
> The problem is when the user1 modified a file in folder A then that file
> add the group g1 automatically. So the user2 can modify that file.

Possibly a quick fix:
chmod g+s folderA
setfacl -d -m g:g3:rwx folderA 
> 
> 
> 
> Quest : How to deny to add group automatically.
> 
> 
> 
> Thanks ALL.




More information about the samba mailing list