Operating System - HP-UX
1832676 Members
2820 Online
110043 Solutions
New Discussion

Re: Removing Password Aging from the command line

 
SOLVED
Go to solution
OldSchool
Honored Contributor

Removing Password Aging from the command line

Wondering if it is possible to remove password aging from the command line, instead of through sam.

Thanks
3 REPLIES 3
Sanjay_6
Honored Contributor
Solution

Re: Removing Password Aging from the command line

Hi,

To disable passwd aging for a specific user from command line, try,

# passwd -n 0 -x 0 username

It may force the user to change his / her password at the next login attempt.

Hope this helps.

Regds
OldSchool
Honored Contributor

Re: Removing Password Aging from the command line

Thanks, I tried that just before your response. It worked.

Thanks
OldSchool
Honored Contributor

Re: Removing Password Aging from the command line

passwd -x 0 -n 0 user_name