Operating System - HP-UX
1834178 Members
2664 Online
110064 Solutions
New Discussion

Password not contain username

 
cdm
Occasional Advisor

Password not contain username

Hi,
Is it possible in a HP-UX 11.11 Trusted System that the user's password does not contain the user name?
I've tried to use the command /usr/lbin/modprpw and the file /etc/default/security without results.

Thanks
Matteo
3 REPLIES 3
Victor BERRIDGE
Honored Contributor

Re: Password not contain username

Hi matteo,
Have you tried modprpw with triviality check?
(modprpw -m rstrpw=yes...)

All the best
Victor
cdm
Occasional Advisor

Re: Password not contain username

Yes, but it doesn't work properly.
Es:
username: dipede

I have set the new password: dipedeD1
that contains username.

Cheryl Griffin
Honored Contributor

Re: Password not contain username

There are several password requirements outlined on the passwd man page.

Unfortunately there is no way to accomplish what you are trying to do. Circular (and reverse circular) passwords are checked for, but the password in your example is not considered circular because there are extra characters.

From the man page:
+ A password must differ from the user's login name and any reverse or circular shift of that login name. For comparison purposes, an uppercase letter and its corresponding lowercase equivalent are treated as identical.

+ A new password must differ from the old one by at least three characters (one character for non super user if changed by the super user in a trusted system). For comparison purposes, an uppercase letter and its corresponding lowercase equivalent are treated as identical.
"Downtime is a Crime."