GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
RMEXTATTR(8) FreeBSD System Manager's Manual RMEXTATTR(8)

getextattr, lsextattr, rmextattr, setextattr
manipulate extended attributes

getextattr [-fhqsx] attrnamespace attrname filename ...

lsextattr [-fhq] attrnamespace filename ...

rmextattr [-fhq] attrnamespace attrname filename ...

setextattr [-fhnq] attrnamespace attrname attrvalue filename ...

setextattr -i [-fhnq] attrnamespace attrname filename ...

These utilities are user tools to manipulate the named extended attributes on files and directories. 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 target file or directory, attrvalue a string to store in the attribute.

The following options are available:

(Force.) Ignore errors on individual filenames and continue with the remaining arguments.
(No follow.) If the file is a symbolic link, perform the operation on the link itself rather than the file that the link points to.
(From stdin.) Read attribute data from stdin instead of as an argument.
(NUL-terminate.) NUL-terminate the extent content written out.
(Quiet.) Do not print out the pathname and suppress error messages. When given twice, print only the attribute value, with no trailing newline.
(Stringify.) Escape nonprinting characters and put quotes around the output.
(Hex.) Print the output in hexadecimal.

setextattr system md5 `md5 -q /boot/kernel/kernel` /boot/kernel/kernel
md5 -q /boot/kernel/kernel | setextattr -i system md5 /boot/kernel/kernel
getextattr system md5 /boot/kernel/kernel
getextattr -qq system md5 /boot/kernel/kernel | od -x
lsextattr system /boot/kernel/kernel
rmextattr system md5 /boot/kernel/kernel

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

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

Robert N M Watson
Poul-Henning Kamp
April 27, 2016 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.