Setfacl Getfacl Command

업데이트:

In this page, I will show you some of basic setfacl and getfacl command for someone interested in.

Setfacl


# 'u' stands for user, 'g' stands for group, 'o' stands for others
# -m means modify
setfacl -m u:user1:rwx /DATA/work/CP_transaction
setfacl -m g:devel:rw /project/confi

# default user, group setting.
setfacl -d -m g::rwx /<directory>

# Apply to Subfolders -R
setfacl -R -d -m u::rwx /file
setfacl -R -d -m g::rwx /file

# Delete 
setfacl -x u:user1 /etc/sysconfig/iptables

Getfacl

getfacl /DATA/work/CP_transaction