Securing Systems and Attached Devices in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

How to Display Users Without Passwords

Before You Begin

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.2 .

  • Display all users who have no passwords by using the logins command.
    # logins -p

    The –p option displays a list of users with no passwords. The logins command uses the passwd database from the local system unless a distributed naming service is specified in the password property of the system/name-service/switch service.

Example 3-2  Displaying Accounts Without Passwords

In the following example, the user pmorph and the role roletop do not have passwords.

# logins -p
pmorph          501     other           1       Polly Morph
roletop         211     admin           1       Role Top
#