[Samba] chown and AD users
Rowland penny
rpenny at samba.org
Mon Jun 3 13:54:45 UTC 2019
On 03/06/2019 14:43, Nicolas Boissé via samba wrote:
> Hi everyone,
>
> I want to set ACL's on some directories for AD users with chown
> command, but it doesn't work.
>
> wbinfo -u is ok and return all users. i.e :
>
> DOMAIN\administrator
> DOMAIN\user
OK, your AD has Windows users
> ...
>
> if I try :
> Â Â Â Â #chown -R "DOMAIN\user" /my_dir
>
> I obtain this :
> Â Â Â chown: incorrect user : "DOMAIN\\user"
>
> chown systematically "adds" a backslash, but I don't know if it's the
> real cause of the problem.
OH look, your Unix OS doesn't know your Windows AD users
Just because wbinfo shows your users means nothing to Unix, until
'getent passwd username' does.
What is this on ?
A Samba AD DC or a Unix domain member ?
Can you post your smb.conf and /etc/nsswitch.conf
Rowland
More information about the samba
mailing list