Alice/_en_/_posts/2020-01-21-One-file-several...

515 B

layout author title lang lang-ref
post Flávio Schiavoni One file, several owners en One-file-several-owners

It is possible that the same file on Linux has more than one user authorized to change it. Unlike chmod which only allows one owner on one file, the setfacl command allows adding permissions for multiple users on the same file. For this, we use the command:

setfacl -R -m user:LOGIN:rwx  /FOLDER/FILE

To check which users have permissions on a file:

getfacl FILE