ATTRINIT(1M)ATTRINIT(1M)NAMEattrinit - Set file attributes
SYNOPSISattrinit [-option[=value]]... [-attr=value]... [path]...
DESCRIPTIONattrinit verifies or modifies the attributes associated with files.
OPTIONS-verify
If value is installed don't set the attributes, just report any
differences between the attributes specified and those which are set
for each of the specified paths. Ignore paths which do not exist.
A value of all differs only in that paths which do not exist are
reported. If value is also the attributes are set after they are
checked.
If this option is not specified the attributes are set.
-script
A script file named by value is read for additional directives.
Each line of the script file must have the form
-attr=value... path
where valid attr and values are described below. Any attr values
which are specified on the command line override those in the
script.
-verbose
Keep a running count of the fraction of the operation which has
completed.
VERIFIABLE ATTRIBUTES
These attributes may always be specified, but are only used for
verification. They are never changed by attrinit.
-mode
value specifies the file permission bits to look for.
-user
value specifies the user name or numeric user id of the file's
owner.
-group
value specifies the group name or numeric group id of the file's
owning group.
-type
Permitted values are directory (also d) tree (also t) moldytree
(also m) file (also f) symlink (also l or link) fifo (also p or
Page 1
ATTRINIT(1M)ATTRINIT(1M)
pipe) chardev (also c or char) blockdev (also b , blk or block) and
socket (also s)
There are two special cases, value tree and moldytree. If used, the
attribute and value specified are applied to the tree (or moldy tree)
rooted at path. CAP_MAC_MLD is required in order to use moldytree on
systems with MAC enabled.
MODIFIABLE ATTRIBUTES
These attributes may be specified for modification or verification.
-mac Set the mandatory access control ( MAC ) label to the specified
value.
-cap Set the capabilities of the file to those listed in value.
-acl Set the access control list of the file to the specified value.
-acldefault
Set the default access control list of a directory to the specified
value.
NOTES
In most cases, chacl(1), chcap(1), or chlabel(1) should be used in
preference to attrinit.
SEE ALSOchacl(1)chcap(1)chlabel(1)
IRIX Advanced Site and Server Administration Guide.
Page 2