Operating System - HP-UX
1832611 Members
2968 Online
110043 Solutions
New Discussion

Change password expiry date

 
Raymond Ho_2
New Member

Change password expiry date

I have to adminstrate a large number of servers. The administration effort is large for me to change password one by one. I want to use /usr/sam/lbin/usermod.sam -p to change password. But the password still expires. Is anyone knows there any command to change the expiry date? Can the command be applicable to both trusted system and non-trusted system?


2 REPLIES 2
Michael Tully
Honored Contributor

Re: Change password expiry date

Hi,

You can force users to change their passwords in a un-trusted environment by using the information provided in this man page:

# man 4 passwd

The trusted system is a little different in
that it is actually in a database. You can
have a look in 'sam' or make use of the
'getprpw' and 'modprpw' programs. They are
both located in /usr/lbin

Here is a link to those man pages:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x98153d853cd9d5118ff40090279cd0f9,00.html

HTH
~Michael~
Anyone for a Mutiny ?
Nick Wickens
Respected Contributor

Re: Change password expiry date

Because of other issues I had to turn automated password ageing off on our system but as I wanted to continue ageing the passwords but at a set point in the day (HP-UX seems to expire passwords at the exact point of expiry which was upsetting Informix database connections during the daytime processing) I run the script which I detailed in the link below recently, every morning via cron.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3791e7613948d5118fef0090279cd0f9,00.html
Hats ? We don't need no stinkin' hats !!