[Samba] Re: How to set up a share in smb.conf for ACL's

Dan Bar Daniel.Bar at seznam.cz
Sat Nov 29 11:59:11 GMT 2003



Dirk Hennrichs wrote:
> 
> For example, here is my share
> 
> [user1]
> Path=/lanman/user1
> Valid users=user1, at root
> Force user=user1
> Read only=No
> 
> 
> User1 can work with the share. Now, I want user2 to work with it and I
> want to define it with ACL-Settings, so getfacl on /lanman/user1 shows
> the following (even all Subdirectories and Files within the share):
> 
> Getfacl /lanman/user1:
> # file: user1
> # owner: user1
> # group: users
> user::rwx
> user:user2:rwx
> group::---
> mask::rwx
> other::---
> default:user::rwx
> default:user:user2:rwx
> default:group::---
> default:mask::rwx
> default:other::---
> 
> But when user2 tries to connect to that share, no success !
> 
> Can somebody tell me what ist wrong ?
> 
> I know that with valid users =user1,user2 I can solve this problem. But
> I need ACL's inside share definitions to grant access to some files not
> to all valid users !

valid users options have higher priority than those an filesystem level 
ACL's. So even user2 have rights to access user1 dir, Samba won't let him.

Solutions for you is: add all chosen users to "valid users" and tune 
fiesystem ACL's as necessary.

Dan





More information about the samba mailing list