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 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(1M) command uses the local /etc/passwd file and the NIS or NIS+ password databases to obtain a user's login status.
The following example displays login status for the user rimmer.
# logins -x -l rimmer
rimmer 500 staff 10 Arnold J. Rimmer
/export/home/rimmer
/bin/sh
PS 010170 10 7 -1
|