System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Change all users password using script on HP-UX server

krishnarjun
Occasional Visitor

Change all users password using script on HP-UX server

We have a HP_UX where we have a number of user ids and we also have the list of old passwords .
Now we want to change the password of all the users and assign them a default password.Can we write a shell script to do that.

with the --stdin option of the command 'passwd',we was doing earlier on SUN server as root

Any suggestion or sample script for HP-UX server will help.

thanks
krishnarjun
3 REPLIES
Hakki Aydin Ucar
Honored Contributor

Re: Change all users password using script on HP-UX server

in case of number of servers not (number of users) I would recommend to use webmin bulk operations.

it is possible what you want but maybe Perl script is better handled it.
Dennis Handly
Acclaimed Contributor

Re: Change all users password using script on HP-UX server

You might be able to use /usr/sam/lbin/usermod.sam to modify the password.
BOB-Unix
Senior Member

Re: Change all users password using script on HP-UX server

Hi, Did You get any script on changin the password.

krishnarjun wrote:
We have a HP_UX where we have a number of user ids and we also have the list of old passwords .
Now we want to change the password of all the users and assign them a default password.Can we write a shell script to do that.

with the --stdin option of the command 'passwd',we was doing earlier on SUN server as root

Any suggestion or sample script for HP-UX server will help.

thanks
krishnarjun