[kanchilug] 1D1C - chacl

  • From: Dhanasekar <tkdhanasekar@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx, kanchilug@xxxxxxxxxxxxx
  • Date: Thu, 12 May 2022 06:00:00 +0530

chacl - change the access control list of a file or directory

example:
To change the ACL of a file
$ chacl u::rwx,g::r-x,o::r-- file

To set default acl for a directory
$ chacl -d u::rwx,g::r-x,o::r-- file_name

To remove the ACL
$ chacl -R file

To remove the directory default ACL
$ chacl -D /directory_name

To remove all ACL
$ chacl -B file

To list the ACL for a file/directory
$ chacl -l file/directory

To set the access ACL recursively
$ chacl -r u::r-x,g::r-x,o::r-- /directory



regards,
T.Dhanasekar

Other related posts:

  • » [kanchilug] 1D1C - chacl - Dhanasekar