[Samba] Samba Permissions

Baird, Josh jbaird at follett.com
Sun Dec 9 14:16:57 MST 2012


Sorry for the top post.

If I only wanted to use ACLs to control access, and not Samba as indicated in my OP, should I use "security = share" mode?

Thanks.

-----Original Message-----
From: TAKAHASHI Motonobu [mailto:monyo at monyo.com] 
Sent: Sunday, December 09, 2012 2:20 AM
To: Baird, Josh
Cc: samba at lists.samba.org
Subject: Re: [Samba] Samba Permissions

From: "Baird, Josh" <jbaird at follett.com>
Date: Fri, 7 Dec 2012 20:58:22 +0000

> I thought I had this working correctly, but sometimes it randomly breaks.
> Here is an example of a share's configuration:
> 
> [testshare]
>   comment = Test Share
>   path = /test/testshare
>   writeable = yes
>   create mask = 770
>   directory mask = 770

You may want to add "force group = DOMAIN\testgroup".

> if the share's directory has the following permissions:
> 
> drwxrwx--- 2 root       DOMAIN\testgroup 4096 Dec  7 14:54 testshare
> 
> Then, anyone in the "DOMAIN\testgroup" should have read/write access 
> to the share, correct?

Basically yes. In my env, those settings work correctly.

DOMAIN\testuser, a member of DOMAIN\testgroup can write to the share. The owner group of written file is "DOMAIN\domain users", testuser's primary group.

---
TAKAHASHI Motononu <monyo at monyo.com>


More information about the samba mailing list