# How to use ACL

**URL:** <https://eos-community.web.cern.ch/t/how-to-use-acl/112>\
**Category:** Site Administrators\
**Created:** [April 13, 2018, 10:13am UTC](https://eos-community.web.cern.ch/t/how-to-use-acl/112 "2018-04-13T10:13:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![windbell](https://eos-community.web.cern.ch/letter_avatar_proxy/v4/letter/w/76d3ee/32.png) [@windbell](https://eos-community.web.cern.ch/u/windbell)\
**Post date:** [April 13, 2018, 10:13am UTC](https://eos-community.web.cern.ch/t/how-to-use-acl/112/1 "2018-04-13T10:13:13Z")

</div>

I want to set acl as a normal user. Fellow is my operation:

> attr set sys.acl=u:test:r nnnn  
> error: unable to set attribute in file/directory /eos/home/nnnn: Unable to set attribute /eos/home/nnnn  
> (errc=1) (Operation not permitted)  
> attr set user.acl=u:test:r nnnn  
> error: unable to set user.acl - the file/directory does not evaluate user acls (sys.eval.useracl is undefined)!  
> (errc=22) (Invalid argument)  
> attr set sys.eval.useracl=1 .  
> error: unable to set attribute in file/directory /eos/hxmt/home/niejy/test: Unable to set attribute /eos/hxmt/home/niejy/test  
> (errc=1) (Operation not permitted)

And I set sys.acl as root, also give same error. What’s wrong with my operation?  
Thanks。

---

<div class="post-metadata">

**Author:** ![vessko](https://eos-community.web.cern.ch/letter_avatar_proxy/v4/letter/v/9de0a6/32.png) [@vessko](https://eos-community.web.cern.ch/u/vessko)\
**Post date:** [April 16, 2018, 8:19am UTC](https://eos-community.web.cern.ch/t/how-to-use-acl/112/2 "2018-04-16T08:19:52Z")

</div>

Hi Nie,

Can you provide as a user from the standard command line, output from theese:  
eos whoami  
eos ls -l /eos/home/  
eos ls -l /eos/home/nnnn  
eos attr ls /eos/home/  
eos attr ls /eos/home/nnnn

In order to have the right to set user acl you need:

1. sys.eval.useracl=1 set on the directory/file by root on the MGM
2. Properly authenticated user recognized by eos user
3. To be the owner of the file/directory or have acl rights

Cheers
