ACL: Difference between revisions

From DWIKI
Tony (talk | contribs)
m New page: =Commands= ==getfacl== ==setfacl==
 
Tony (talk | contribs)
Tag: wikieditor
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
Posix Access Control Lists
=Docs=
*http://linuxhelp.blogspot.com/2005/11/get-exact-control-over-your-files-and.html
*[http://serverfault.com/questions/455111/rsynced-files-not-getting-proper-acl Using rsync with acl]
=Commands=
=Commands=
==getfacl==
==getfacl==


 
==chacl==


==setfacl==
==setfacl==
=HOWTO=
==Set group writable==
setfacl -R -d -m g::rwx .
==Make logs readable for user zabbix==
setfacl -d -m u:zabbix:rx /var/log/nginx/
Use -d so newly created files will be readable too
setfacl -d -m u:zabbix:rx /var/log/nginx/
=FAQ=
==setfacl: Option -x: Invalid argument near character 16"==
You only need like
setfacl -x group:somegroup

Latest revision as of 13:23, 23 February 2026

Posix Access Control Lists

Docs

Commands

getfacl

chacl

setfacl

HOWTO

Set group writable

setfacl -R -d -m g::rwx .

Make logs readable for user zabbix

setfacl -d -m u:zabbix:rx /var/log/nginx/

Use -d so newly created files will be readable too

setfacl -d -m u:zabbix:rx /var/log/nginx/

FAQ

setfacl: Option -x: Invalid argument near character 16"

You only need like

setfacl -x group:somegroup