getauthid(1) DG/UX B2 Security R4.12MU02 getauthid(1)
NAME
getauthid - display authentication ID of processes
SYNOPSIS
getauthid [-q] [pid ...]
where:
pid The process(es) whose authentication ID getauthid displays
DESCRIPTION
The getauthid command displays the authentication IDs of the
specified processes. If no pid is specified, getauthid displays the
authentication ID of the invoking process. A pid of 0 also causes
getauthid to display the authentication ID of the invoking process.
Options
-q Do not write diagnostic messages. The usage error message is
always written.
EXAMPLES
$ getauthid
50
$ getauthid 1234 4321
pid 1234: 56
pid 4321: 58
DIAGNOSTICS
Getauthid writes all diagnostic messages to stderr.
The getauthid command exits with one of the following values:
0 The authentication IDs associated with all specified pids
were successfully reported.
1 A&A is not supported on this system.
2 getauthid could not report an authentication ID.
3 getauthid usage is wrong.
NOTES
By default, getauthid reports the authentication ID of the invoking
process, i.e. the invoking shell. This is accomplished by having
getauthid report the authentication ID of its parent process.
However, if the output of getauthid is passed into a pipe, its parent
process will not be the invoking shell. If you use a pipe to
redirect the standard output of the getauthid command and you are
trying to get the authentication ID of the invoking process, you are
required to specify a pid. You can use the $$ environment variable
to specify the current process:
$ getauthid $$ | cut -d' ' -f3
51
SEE ALSO
dggetauthid(2), dgsetauthid(2).
Licensed material--property of copyright holder(s)