Assigning Permissions:
This command sets ACL (Access Control List) for the file yourFileName.csv.
-m option indicates modifying the ACL.
u:yourUserName:r assigns read (r) permission to the user yourUserName.
sudo setfacl -m u:yourUserName:r yourFileName.csv
Revoking Permissions
This command removes the ACL entry for the user yourUserName from the file yourFileName.csv.
-x option indicates removing a specified ACL entry.
sudo setfacl -x u:yourUserName yourFileName.csv
Setting Default Permissions (Mask)
This command sets the mask permission for the file yourFileName.csv to read, write, and execute (rwx).
The mask defines the maximum permissions allowed for users other than the owner and the group. Here, setting the mask to rwx allows users to have up to read, write, and execute permissions.
sudo setfacl -m m::rwx yourFileName.csv
Removing All ACL Entries
This command removes all ACL entries from the file yourFileName.csv, resetting it to its default permission state. -b option indicates deleting all ACL entries.
sudo setfacl -b yourFileName.csv
Viewing ACL Settings
This command displays the current ACL settings for the file yourFileName.csv.
getfacl yourFileName.csv