Display a user's login status by using the logins command.
# logins -x -l username |
-x |
Displays an extended set of login status information. |
-l username |
Displays the login status for the specified user. username is a user's login name. Multiple login names must be specified in a comma-separated list. |
The logins command uses the local /etc/passwd file and the name service password databases (if any) to obtain a user's login status. For more information, see the logins(1M) man page.
In the following example, the login status for the user rimmer is displayed.
# logins -x -l rimmer rimmer 500 staff 10 Arnold J. Rimmer /export/home/rimmer /bin/sh PS 010170 10 7 -1 |