getuid

Description

The getuid() function returns the user ID number for the specified user. This information is taken from the gecos field of /etc/passwd on the policy server host or the password map in NIS.

Not supported in Endpoint Privilege Management for Linux (EPM-L).

Syntax

result = getuid([user]);

Arguments

user

Optional. The name of the user for which a user ID number should be returned. If this argument is not specified, then the value of the runuser variable is used.

Return Values

result contains the uid of the specified user of /etc/passwd or the NIS password map. An error is returned if the user is null or invalid.

result = getuid("root");

For more information, see the following: