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.4.
# 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.
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 #