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.

result = getuid([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.

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, please see the following: