Operating System - HP-UX
1753993 Members
6937 Online
108811 Solutions
New Discussion юеВ

Change all users password using script on HP-UX server

 
krishnarjun
New Member

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 3
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