parrot_whoami1
Returns the user's credentials (id and authentication method) from the perspective of the system being accessed.
Usage
FCparrot_whoami <path>FT
Overview
FCparrot_whoamiFT interrogates the system being accessed at <path> and returns the user's id from the perspective of that system as well as the authentication method being used. The specific results depend on the system being accessed.
If <path> is not provided the current working directory is used.
Options
FCparrot_whoamiFT has no options.
Exit status
On success, returns zero. On failure, returns non-zero.
Examples
To get the user's credentials when accessing a remote chirp server:
-
% parrot_run parrot_whoami /chirp/server.nd.edu/joe_data/data unix:joe
If you're working within a remote directory, <path> is not necessary:
-
% parrot_run tcsh % cd /chirp/server.nd.edu/joe_data/data % parrot_whoami unix:joe % exit
Releases
6 releases since Debian 7 (Wheezy); the text changed 4 times.