checklogin Command Determine Login Information
Valid in the AC environment
capamsc141
Valid in the AC environment
Use the checklogin command to determine a user's login privileges, whether a password check is needed, and whether a terminal access check is needed.
This command is not available when seos is down.
To use this command you must have sufficient authority over the resource, as defined by any of the following conditions:
- The process running the command has the SERVER attribute.
- You have the ADMIN attribute.
This command has the following format:
checklogin userName [password(password)] [terminal(terminalName)]
- password(password)(Optional) Defines the password thatPAM Server Controlchecks against the operating system password and the database, if password checking is enabled.
- userNameDefines the name of the user whose right to login is being verified.
- terminal(terminalName)(Optional) Defines the terminal thatPAM Server Controlchecks to determine if a user has login privileges from it.
Example: Determine whether user has login privileges
To determine whether user Frank has login privileges to the
localhost
from terminal mutra
, enter the following command:checklogin Frank terminal(mutra)
The following output of the command, indicates that user Frank can login from terminal mutra to host winsome (localhost):
Login by USER frank to host winsome is GRANTED Stage: Resource class global universal access
To verify user Frank's password, enter the following command:
checklogin frank password(111) terminal(localhost)
To verify user Frank's password against the one in the
PAM Server Control
database, enter the following commands:so class+(PASSWORD) (localhost) checklogin frank password(moonshine) terminal(tack)
The
so
command above enables password checking.