How to Display the User's Login Status
To use the logins
command, you must become an administrator who is assigned either the User Management or the User Security rights profile. By default, the root
role has this authorization. For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.
Example 3-1 Displaying a User's Login Status
In the following example, the login status for the user jdoe
is
displayed.
# logins -x -l jdoe
jdoe 500 staff 10 Jaylee Jaye Doe
/home/jdoe
/bin/bash
PS 010103 10 7 -1
-
jdoe
-
Identifies the user's login name.
-
500
-
Identifies the user ID (UID).
-
staff
-
Identifies the user's primary group.
-
10
-
Identifies the group ID (GID).
- Jaylee Jaye Doe
-
Identifies the comment.
-
/home/jdoe
-
Identifies the user's home directory.
-
/bin/bash
-
Identifies the login shell.
-
PS 010170 10 7 -1
-
Specifies the password aging information:
-
Last date that the password was changed
-
Number of days that are required between changes
-
Number of days before a change is required
-
Warning period
-