User and Password Functions

User and password functions are used to verify passwords and provide password control. The following table summarizes the user and password functions.

Element Description
getfullname() function Returns the specified user’s full name.
getgroup() function Returns the specified user’s primary group.
getgrouppasswd() function Prompts for a user and the password of one of the members of the group specified as argument to the function.
getgroups() function Returns all groups the specified user is in.
gethome() function Returns the specified user’s home directory.
getshell() function Returns the specified user’s default login shell.
getstringpasswd() function Prompts the user for a special password.
getuid() function Returns the user's uid.
getuserpasswd() function Prompts the user for the password belonging to the specified user.
ingroup() function Determines whether a user belongs to a specific group.
submitconfirmuser() function Controls if a user must enter a password before the current task request can be accepted.
runconfirmuser variable Controls whether a user must enter a password before the current task request can be executed.
runconfirmmessage variable Contains the prompt that is displayed when the submitting user is required to provide a password.