Is there a way I can get information on the password for a particular user like what is the minimum length and minalpha and etc.?
In AIX we have a command called lsuser
:
lsuser -a minlen username
That command will return the minimum length of a user’s password. Is there an equivalent command in Linux?
I need this to find the users who have weak passwords, since even though I apply the restriction from pam, a user can change whatever password he want as root user.
I don’t have to apply the restriction for root.