Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > G


HP-UX 11i Version 3: February 2007

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index


getfilexsec — display security attributes of binary executable(s)


getfilexsec [-r] [-R] [-p] [-P] [-f] [-c] filename...


The getfilexsec command displays various extended security attributes associated with binary executable files. These attributes include retained privileges, permitted privileges, and compartment and security attribute flags. See privileges(5) and exec(2)


The getfilexsec command supports the following options:


Displays the compartment name of the file(s).


Displays security attribute flags. The only currently defined flag is the privilege start flag.


Displays the minimum permitted privileges.


Displays the maximum permitted privileges.


Displays the minimum retained privileges.


Displays the maximum retained privileges.

If no options are specified, all extended security attributes of the binary file(s) are displayed.


getfilexsec supports the following operand:


Binary executable file. All file names given as arguments must be binary executables. Files of other types (for example, script executables, text files, and so on) are not permitted.

Security Restrictions

The user invoking this command must be able to open the directory in which the binary executable files are present.


getfilexsec returns the following values:


Successful completion. The attributes are displayed.


An error occurs. An error can be caused by an invalid option or inadequate permissions to perform the operation.


Example 1: Display the maximum permitted privileges and privilege-aware flag of binary executable file /web/java:

# getfilexsec -P -f /web/java

Sample output:

/web/java: Flag: start_nil PermittedMaxPrivileges: CMPTREAD, CMPTWRITE

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.