How To Install Setfacl On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

How To Install Setfacl On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

setfacl

Set file access control lists (ACL).

Maintainer: Anibal Monsalve Salazar



Section: utils

Install setfacl

  • Debian apt-get install acl Click to copy
  • Ubuntu apt-get install acl Click to copy
  • Alpine OS apk add acl Click to copy
  • Arch Linux pacman -S acl Click to copy
  • Kali Linux apt-get install acl Click to copy
  • CentOS yum install acl Click to copy
  • Fedora dnf install acl Click to copy
  • Raspbian apt-get install acl Click to copy

Set file access control lists (ACL).

How to use setfacl?

Below are few example commands for setfacl that you can use in the terminal.

Modify ACL of a file for user with read and write access:
setfacl -m u:username:rw fileClick to copy
Modify default ACL of a file for all users:
setfacl -d -m u::rw fileClick to copy
Remove ACL of a file for an user:
setfacl -x u:username fileClick to copy
Remove all ACL entries of a file:
setfacl -b fileClick to copy
Installing setfacl command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of setfacl 2026 package in your OS.