Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xattr_list(3) [php man page]

XATTR_LIST(3)								 1							     XATTR_LIST(3)

xattr_list - Get a list of extended attributes

SYNOPSIS
array xattr_list (string $filename, [int $flags]) DESCRIPTION
This functions gets a list of names of extended attributes of a file. Extended attributes have two different namespaces: user and root. The user namespace is available to all users, while the root namespace is available only to users with root privileges. xattr operates on the user namespace by default, but this can be changed with the $flags parameter. PARAMETERS
o $filename - The path of the file. o $flags - Supported xattr flags +-----------------+---------------------------------------------------+ | | | |XATTR_DONTFOLLOW | | | | | | | Do not follow the symbolic link but operate on | | | symbolic link itself. | | | | | | | | XATTR_ROOT | | | | | | | Set attribute in root (trusted) namespace. | | | Requires root privileges. | | | | +-----------------+---------------------------------------------------+ RETURN VALUES
This function returns an array with names of extended attributes. EXAMPLES
Example #1 Prints names of all extended attributes of file <?php $file = 'some_file'; $root_attributes = xattr_list($file, XATTR_ROOT); $user_attributes = xattr_list($file); echo "Root attributes: "; foreach ($root_attributes as $attr_name) { printf("%s ", $attr_name); } echo " User attributes: "; foreach ($attributes as $attr_name) { printf("%s ", $attr_name); } ?> SEE ALSO
xattr_get(3). PHP Documentation Group XATTR_LIST(3)

Check Out this Related Man Page

XATTR(1)                                                      General Commands Manual                                                     XATTR(1)

NAME
xattr - sets or lists extended attributes on a file or directory SYNOPSIS
xattr [ -lz ] filename [ filename ... ] xattr -p [ -lz ] attr_name filename [ filename ... ] xattr -w [ -z ] attr_name attr_value filename [ filename ... ] xattr -d attr_name filename [ filename ... ] DESCRIPTION
This manual page documents briefly the xattr command. The first form lists the names of all xattrs on the given file(s). The second form (-p) prints the value of the xattr attr_name. The third form (-w) sets the value of the xattr attr_name to attr_value. The fourth form (-d) deletes the xattr attr_name. OPTIONS
A summary of options is included below. -h Show summary of options. -l Print long format (attr_name: attr_value) when listing xattrs. -z Compress or decompress (if compressed) attribute value in zip format). SEE ALSO
The Python module "xattr" AUTHOR
xattr was written by Bob Ippolito <bob@redivi.com>. This manual page was written by Federico Ceratto, for the Debian project (and may be used by others). May 8, 2010 XATTR(1)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Root privileges &Sudoer

Hi guys... how can a root assign a user all or most of the root privileges? is sudoer comand enough 4 this? thx alot.. (2 Replies)
Discussion started by: blue_7
2 Replies

2. HP-UX

Disabled/Locked users

How can I check the disabled/locked users in HP-UX? It's possible to know that without root privileges? Thanks. (2 Replies)
Discussion started by: psimoes79
2 Replies

3. AIX

Root user

Hello everyone I have a question ? Its possible to create another user exactly as root? If not its possible what options I have to create a user like root. Thanks for your comments. Greetings (5 Replies)
Discussion started by: lo-lp-kl
5 Replies

4. UNIX for Dummies Questions & Answers

tracking root users

Hi everyone hope you can help me i have 5 root users and the problem with that is how can you see witch root user did what on the box how can you track the users that played on the servers. 1) What commands they typed (in linux you get history ) 2) From witch ip did they connect to the server (3 Replies)
Discussion started by: sucram
3 Replies