How to Display Users Without Passwords
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-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
#