/usr/bin/chacl: invalid option -- '-'
Usage:
chacl acl pathname...
chacl -b acl dacl pathname...
chacl -d dacl pathname...
chacl -R pathname...
chacl -D pathname...
chacl -B pathname...
chacl -l pathname... [not IRIX compatible]
chacl -r pathname... [not IRIX compatible]
Options (7)
| Option | Description | Source |
|---|
-b | Indicates that there are two ACLs to change, the first is the file access ACL and the second the directory default ACL. | man |
-d | Used to set only the default ACL of a directory. | man |
-R | Removes the file access ACL only. | man |
-D | Removes directory default ACL only. | man |
-B | Remove all ACLs. | man |
-l | Lists the access ACL and possibly the default ACL associated with the specified files or directories. | man |
-r | Set the access ACL recursively for each subtree rooted at pathname(s). | man |
Examples (3) from the manual page, untested
chacl u::rwx,g::r-x,o::r-- file
A minimum ACL:chacl u::rwx,g::r-x,o::r--,u:bob:r--,m::r-x file1 file2
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 -b `chacl -l olddir | \
To set the default and access ACLs on newdir to be the same as on olddir, you could type:
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.