cancel
Showing results for 
Search instead for 
Did you mean: 

Force fully passwd reset

SOLVED
Go to solution
Viney Kumar
Regular Advisor

Force fully passwd reset

Hi

There any way in Hp-ux in that all system users need to be reset their passwd in next login
3 REPLIES
Autocross.US
Trusted Contributor
Solution

Re: Force fully passwd reset

'passwd -f USERNAME' will expire the account and force a password change upon next login.

You could write a loop to process the account names in /etc/passwd and run this command on each one:

awk -F: '{print $1}' /etc/passwd | grep -v root | while read USER ; do
passwd -f $USER
done

The above example skips the root user.
I drive way too fast to worry about calories.
Khashru
Valued Contributor

Re: Force fully passwd reset

password -f is the best way. you can copy the password file to a separate file and remove entries with UID less then 100 to avaid system account password reset.
Viney Kumar
Regular Advisor

Re: Force fully passwd reset

Thanks to all


Viney Kumar