LINUX How to use getfacl and setfacl
To know this, first open a terminal and open the folder in which you
want to create a subfolder. Next type "mkdir <folder-name>" and
press the ENTER key. This will create a folder with default access
permissions. To know the access permissions, type
getfacl
OfficeDocuments
To set
access
permissions using
setfacl -m user::rwx,group::rw-,mask:r--,other:--- OfficeDocuments/
Example: set
access
permissions for usera
setfacl -m u:usera:rwx -R OfficeDocuments/
setfacl -m g:prj_office_documents:rx -R OfficeDocuments/
Comments
Post a Comment