[Samba] Adding a new share

Robert Moskowitz rgm at htt-consult.com
Fri Sep 11 17:12:08 UTC 2015



On 09/11/2015 12:30 PM, Rowland Penny wrote:
> On 11/09/15 17:16, Robert Moskowitz wrote:
>> From:
>>
>> https://wiki.samba.org/index.php/Shares_with_Windows_ACLs#Preparatory_work 
>>
>>
>> It instructions:
>>
>> setfacl -m g:"domain admins":rwx /srv/samba/Demo/
>>
>> or use another group or user.
>>
>> Where are these defined, and when I do a
>>
>> ls -ls /srv/samba/Demo/
>>
>> what will I see?
>>
>> I did try the above command and got:
>>
>> setfacl: Option -m: Invalid argument near character 3
>>
>>
>> So I need more help than what I see in the wiki.  But that is not 
>> new!  ;)
>>
>>
>>
>
> Ah, 'setfacl' has an opposite, 'getfacl' , so try 'getfacl 
> /srv/samba/Demo'

# getfacl /srv/samba/Demo
getfacl: Removing leading '/' from absolute path names
# file: srv/samba/Demo
# owner: root
# group: users
# flags: -s-
user::rwx
group::rwx
other::---


>
> I 'think' your problem is that before you can set the ACL with 
> setfacl, your Unix box needs to be able to resolve "domain admins", 
> so, do you get anything if you run 'getent group Domain\ Admins' ?

Nothing.





More information about the samba mailing list