Operating System - HP-UX
1829639 Members
1758 Online
109992 Solutions
New Discussion

modprdef password history depth

 
daamaya
New Member

modprdef password history depth

Is there any way to modify the password history depth via command line, possibly with modprdef (looked at man page but did not see the flag)? I am currently doing it with a vi session, but for ease of use would much rather do it at command line. I do not have the ability to use search and replace with sed or perl, or any other variant.
3 REPLIES 3
daamaya
New Member

Re: modprdef password history depth

I should probably not that we're dealing withn HP 11.11, and it is a trusted system.
Walt Watson
Advisor

Re: modprdef password history depth

Am unaware of a command line to accomplishe this.

I add the parameters I want to /etc/default/security (tip: use sftp to bring it to a desktop editor like UltraEdit, then sftp it back).

An alternative if you r system allows it is ReflectionX which has a really nice editor.
Dennis Handly
Acclaimed Contributor

Re: modprdef password history depth

>I am currently doing it with a vi session

This is the way most configuration files are maintained.

>I do not have the ability to use search and replace with sed or perl

What does "ability" mean here? You don't know how?

Anyway, you're in luck, there is a command I found out recently, ch_rc(1m):
Add/Change:
# ch_rc -a -p PASSWORD_HISTORY_DEPTH=4 /etc/default/security
List:
# ch_rc -l -p PASSWORD_HISTORY_DEPTH /etc/default/security

Unfortunately the original security file has them commented out. ch_rc(1m) will then put them at the end.