HI,
How to use setfacl for a domain user?
I have an AD domain name manjunath and a domain user of the same domain named boarduser1. My cluster is joined to the domain.
I am trying to set ACL for the boarduser1 on a file.
I have tried this:
setfacl -m u:Manjunath\boarduser1:rwx <file>
but this doesn't work. I get an error.
[root@ib35-12s9 full]# setfacl -m u:Manujanth\boarduser1:rwx TC76.py
setfacl: Option -m: Invalid argument near character 3
I tried using the name of the user alone, i.e without the domain name.
[root@ib35-12s9 full]# setfacl -m u:boarduser1:rwx TC76.py
setfacl: Option -m: Invalid argument near character 3
But if I check the user, I get this
[root@ib35-12s9 full]# id Manjunath\\boarduser1
uid=1546805577(MANJUNATH\boarduser1) gid=1546650113(MANJUNATH\domain^users) groups=1546650113(MANJUNATH\domain^users),1546805603(MANJUNATH\boardgp),1545(Users),1546805602(MANJUNATH\upmgmtgp)
I am able to run the setfacl command w/o any error for any local user. I am clueless please help me.
Thanks in Advance.
---------- Post updated at 05:58 AM ---------- Previous update was at 04:00 AM ----------
Thanks, I worked it out.
had to put "\\" instead of "\" to make it work
setfacl -m u:Manjunath\\boarduser1:rwx <file>
