Operating System - HP-UX
1833494 Members
2880 Online
110052 Solutions
New Discussion

Re: change password policy

 
nash11
Frequent Advisor

change password policy

now my system accept the numerics only or characters only password , for example , the password can be 741852 ( all numerics ) or poiuyt ( all characters ) , if I want to control the password MUST have BOTH characters AND numerics , what can I do ? thx
4 REPLIES 4
Asif Sharif
Honored Contributor

Re: change password policy

Define your requirement in /etc/default/security.

SAMPLE

cat /etc/default/security

PASSWORD_HISTORY_DEPTH=3
PASSWORD_PASSWORD_LENGTH=11
PASSWORD_MIN_UPPER_CASE_CHARS=5
PASSWORD_MIN_LOWER_CASE_CHARS=3
PASSWORD_MIN_DIGIT_CHARS=2
PASSWORD_MIN_SPECIAL_CHARS=1

Regards,
Asif Sharif
Regards,
Asif Sharif
RAC_1
Honored Contributor

Re: change password policy

Is your system in trusted mode? Trusted mode offers more security features that just having /etc/passwd based system. Also you can use security features implemented with /etc/default/security file. It works with plain passwd file and also with trusted systems.

man 4 security
man getprpw
man modprpw
man modprdef
man getprdef
There is no substitute to HARDWORK
Sp4admin
Trusted Contributor

Re: change password policy

Hello,

Just like Asif said.

/etc/default/security file.

PASSWORD_MIN_UPPER_CASE_CHARS=
PASSWORD_MIN_LOWER_CASE_CHARS=
PASSWORD_MIN_DIGIT_CHARS=2
PASSWORD_MIN_SPECIAL_CHARS=2
PASSWORD_HISTORY_DEPTH=10
MIN_PASSWORD_LENGTH=9

sp,
Fabian Briseño
Esteemed Contributor

Re: change password policy

Nash, if I remeber correctly you can also do this via SAM, go to
USERS->choose user you want and go to
->Actions->modify security policies

Knowledge is power.