GO KALI FREE
Permission Commands

setfacl Linux Command

Sets or modifies the Access Control List (ACL) for a file or directory.

What does setfacl do?

Sets or modifies the Access Control List (ACL) for a file or directory.

Syntax

setfacl [options] acl_spec file

Practical example

setfacl -m u:john:rw file.txt

Related Permission Commands

getfacl

Displays the Access Control List (ACL) of a file or directory.

sudo -l

Lists the allowed and forbidden sudo commands for the current user.

umask

Sets the default permission mask for newly created files and directories.

visudo

Safely edits the /etc/sudoers file to configure sudo permissions.

chgrp

Changes the group ownership of a file or directory.

chmod

Changes the read, write, and execute permissions of files and directories.