# \[Solved\] Setfacl command help

**URL:** <https://community.unix.com/t/solved-setfacl-command-help/331478>\
**Category:** Shell Programming and Scripting\
**Created:** [July 8, 2013, 6:58am UTC](https://community.unix.com/t/solved-setfacl-command-help/331478 "2013-07-08T06:58:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prinsh](https://community.unix.com/letter_avatar/prinsh/32/6_449c533f586939b6e5f246632a46421f.png) [@prinsh](https://community.unix.com/u/prinsh)\
**Post date:** [July 8, 2013, 6:58am UTC](https://community.unix.com/t/solved-setfacl-command-help/331478/1 "2013-07-08T06:58:30Z")

</div>

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:

```nohighlight
setfacl -m u:Manjunath\boarduser1:rwx <file>

```

but this doesn't work. I get an error.

```nohighlight
[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.

```nohighlight
[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

```nohighlight
[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\>

---

<div class="post-metadata">

**Author:** ![vbe](https://community.unix.com/user_avatar/community.unix.com/vbe/32/266_2.png) [@vbe](https://community.unix.com/u/vbe)\
**Post date:** [July 8, 2013, 8:12am UTC](https://community.unix.com/t/solved-setfacl-command-help/331478/2 "2013-07-08T08:12:12Z")

</div>

Thanks for keeping us informed 🆒
