Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

getfilepriv(1) OSS Shell and Utilities Reference Manual
NAME
getfilepriv - Displays file privileges for an executable file
SYNOPSIS
getfilepriv file ...
FLAGS
Operands
file Specifies the name of a file for which you want to display privileges.
DESCRIPTION
The getfilepriv command displays the file privileges for the specified file. This file can be either
a Guardian file or an OSS file.
For a description of the values for file privileges, see the setfilepriv(1) reference page.
EXAMPLES
1. To list the privileges for file /user/privexe,enter:
getfilepriv /user/priexe
Sample output:
#file: /usr/privexe
PRIVSETID
2. To list the privileges for the Guardian file $system.system.privobj,
enter:
getfilepriv /G/SYSTEM/SYSTEM/PRIVOBJ
Sample output:
#file: /G/SYSTEM/SYSTEM/PRIVOBJ
PRIVSETID
PRIVSOARFOPEN
3. To list the privileges for all the files in the current directory, enter:
getfilepriv *
Sample output:
#file: exe1_with_privs
PRIVSETID
PRIVSOARFOPEN
#file: exe2_no_priv
NONE
#file: exe2_with_priv
PRIVSETID
#file: not_executable
NONE
#file: exe3_with_priv
PRIVSETID
420 Hewlett-Packard Company 527188-021