chacl(1)
chacl - change the access control list of a file or directory
As shipped in IRIX 6.5.7. Unchanged since IRIX 6.5.
NAME chacl - change the access control list of a file or directory SYNOPSIS chacl acl pathname... chacl -b acl dacl pathname... chacl -d dacl pathname... DESCRIPTION chacl changes the Access Control List (see acl(4)) for a file or directory. The -b flag indicates that there are two ACLs, the first is the access ACL and the second the directory default ACL. The -d flag indicates that there are two ACLs, the first one is the directory default ACL and the second the access ACL. The ACL(s) specified are applied to each file in the pathname arguments. Each ACL is a string which is processed via acl_from_text(3c). These strings are made up of comma separated clauses each of which is of the form, tag:name:perm. Where tag can be "user" (or "u") indicating that the entry is a user ACL entry. "group" (or "g") indicating that the entry is a group ACL entry. "other" (or "o") indicating that the entry is an other ACL entry. "mask" (or "m") indicating that the entry is a mask ACL entry. name is a string which is the user or group name for the ACL entry. A null name in a user or group ACL entry indicates the file owner or owner's group. perm is the string "rwx" where each of the entries may be replaced by a "-" indicating no access of that type, e.g. "r-x", "--x", "---". EXAMPLES A minimum ACL: chacl u::rwx,g::r-x,o::r-- file The file ACL is set so that the file's owner has rwx, the file owner's group has read and execute, and others have read only access to the file. An ACL that is not a minimum ACL, that is, one that specifies a user or group other than the file's owner or owner's group, must contain a mask entry: chacl u::rwx,g::r-x,o::r--,u:guest:r--,m::r-x file1 file2 You can use the output of ls -D to get the ACL argument to chacl. To set the default and access ACLs on newdir to be the same as on oldir, you could type: chacl -b `ls -dD olddir | cut -d"[" -f2 | cut -d"/" -f1` `ls -dD bardir | cut -d"[" -f2 | cut -d"/" -f2 | cut -d"]" -f1` newdir CAUTIONS chacl replaces the existing ACL. To add or delete entries, you must first do ls -D to get the existing ACL, and use the output to form the arguments to chacl. SEE ALSO acl(4), acl_from_text(3c).