Writes or deletes a named extended attribute to a file.
The setea command writes or deletes a named extended attribute to a file. The file must be in a file system which supports named extended attributes, such as JFS2 using v2 extended attribute format.
This command is not used to set ACLs. To set ACLs, use the aclput command.
Item | Description |
---|---|
-d | Specifies to delete the named extended attribute from the file. |
-f EAFile | EAFile specifies a file which contains the EA value. If an extended attribute matching the specified name already exists for the FileName, then the value will be changed to the value specified. |
-l | Specifies to write or delete the extended attribute from the symbolic link itself rather than the file to which it is pointing. |
-n Name | Specifies the name of the extended attribute to be written. |
-v Value | Specifies the value of the named extended attribute. If an extended attribute matching the specified name already exists for the file, then the value will be changed to the value specified. Value is treated as a character string. It should be enclosed in quotes if it contains spaces. |
FileName ... | Specifies the file or files from which to write or delete the extended attribute. |
Item | Description |
---|---|
0 | Successful completion. |
Positive integer | An error occurred. |
setea -n Approver -v Grover design.html
setea -n Approver -v Joon design.html
setea -n Approver -d design.html
setea -n Approver -v Zach -l design.html
/usr/sbin