setextattr - set a named extended attribute
setextattr attrnamespace attrname filename attrvalue
setextattr is a user tool to set a named extended attribute
on a file or
directory to the provided string. The attrnamespace argument should be
the namespace of the attribute to retrieve: legal values are
"system". The attrname argument should be the name of the
filename the name of the file or directory to set the attribute for, and
attrvalue a string to store in the attribute. setextattr
will store the
string in the file's attribute. In order for setextattr to
attribute service must be available on the file system, and
privilege may be required.
# setextattr system md5 /bsd `md5 < /bsd`
Set the ``md5'' extended attribute on the file /bsd to the
the output of ``md5 < /bsd''.
extattr(2), extattr(3), extattrctl(8), getextattr(8), extattr(9)
Extended attribute support was developed as part of the
It was developed to support security extensions requiring additional
labels to be associated with each file or directory.
Robert N M Watson
setextattr can only be used to set attributes to strings.
OpenBSD 3.6 March 30, 2000
[ Back ]