*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> setextattr (8)              
Title
Content
Arch
Section
 

SETEXTATTR(8)

Contents


NAME    [Toc]    [Back]

     setextattr - set a named extended attribute

SYNOPSIS    [Toc]    [Back]

     setextattr attrnamespace attrname filename attrvalue

DESCRIPTION    [Toc]    [Back]

     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
"user" and
     "system".   The  attrname argument should be the name of the
attribute,
     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
succeed, the
     attribute  service must be available on the file system, and
appropriate
     privilege may be required.

EXAMPLES    [Toc]    [Back]

           # setextattr system md5 /bsd `md5 < /bsd`

     Set the ``md5'' extended attribute on the file /bsd  to  the
string containing
 the output of ``md5 < /bsd''.

SEE ALSO    [Toc]    [Back]

      
      
     extattr(2), extattr(3), extattrctl(8), getextattr(8), extattr(9)

HISTORY    [Toc]    [Back]

     Extended attribute support was  developed  as  part  of  the
TrustedBSD Project.
   It  was developed to support security extensions requiring additional
 labels to be associated with each file or  directory.

AUTHORS    [Toc]    [Back]

     Robert N M Watson

BUGS    [Toc]    [Back]

     setextattr can only be used to set attributes to strings.

OpenBSD      3.6                          March      30,     2000
[ Back ]
 Similar pages
Name OS Title
getextattr OpenBSD retrieve a named extended attribute
VOP_SETEXTATTR FreeBSD set named extended attribute for a vnode
VOP_GETEXTATTR FreeBSD retrieve named extended attribute from a vnode
VOP_LISTEXTATTR FreeBSD retrieve a list of named extended attribute from a vnode
add_proplist_entry Tru64 adds an Extended File Attribute to the Extended File Attribute buffer
extattr FreeBSD virtual file system named extended attributes
extattr OpenBSD virtual file system named extended attributes
cd_cxar Tru64 reads the Extended Attribute Record for
cdxar Tru64 Read the Extended Attribute Record from a CD-ROM
cd_xar Tru64 reads the Extended Attribute Record for
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service