setfacl
Set file access control lists (ACL). More information: <https://manned.org/setfacl>.
Install
- All systems
-
curl cmd.cat/setfacl.sh
- Debian
-
apt-get install acl - Ubuntu
-
apt-get install acl -
Alpine
-
apk add acl - Arch Linux
-
pacman -S acl - Kali Linux
-
apt-get install acl - CentOS
-
yum install acl - Fedora
-
dnf install acl - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install acl - Raspbian
-
apt-get install acl - Docker
-
docker run cmd.cat/setfacl setfaclpowered by Commando
Set file access control lists (ACL). More information: <https://manned.org/setfacl>.
-
Modify ACL of a file for user with read and write access:
setfacl -m u:username:rw file -
Modify default ACL of a file for all users:
setfacl -d -m u::rw file -
Remove ACL of a file for a user:
setfacl -x u:username file -
Remove all ACL entries of a file:
setfacl -b file
© tl;dr; authors and contributors