- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Resetting password
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2012 04:58 AM
03-26-2012 04:58 AM
Hi Team,
I have to change the password of a normal user in my Unix machines .. I have more than 500 machines . Its very difficult to login to each machine and do , could any one please help me to provide a script to do this. The details are as follows :
OS === HPunix 11iv2
The OS is a trusted server , remsh is already enabled .. Could any one please provide me some light on this ...
I have a file contains the list of all host names ....
Regards
Laiju.C.Babu
Solved! Go to Solution.
- Tags:
- Password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2012 01:31 PM
03-26-2012 01:31 PM
Solution>I have a file contains the list of all host names ....
A skeleton would be:
for host in $(< host-list); do
echo "Setting password for host: $host:"
remsh $host -n ...
done
Here are some threads using usermod.sam:
http://h30499.www3.hp.com/t5/System-Administration/Using-Makekey-and-Usermod-sam/m-p/4431217/
http://h30499.www3.hp.com/t5/System-Administration/usr-sam-lbin-usermod-sam/m-p/4090976/
http://h30499.www3.hp.com/t5/Languages-and-Scripting/Set-password-script/m-p/3580901/
http://h30499.www3.hp.com/t5/Languages-and-Scripting/Need-to-remove-bug/m-p/4111499/
http://h30499.www3.hp.com/t5/Languages-and-Scripting/Script-for-password/m-p/3817064/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2012 03:13 AM
03-27-2012 03:13 AM
Re: Resetting password
Hi Dennis Handly,
Thanks a lot for your nice suggetion, this saved my lot of time ..... The syntax which i used is as below
remsh <server name > /usr/sam/lbin/usermod.sam -p `echo password66 | /usr/lbin/makekey` <user id>
When i am using the above command the passwd for the user is password ...
Once again thanks a lot for your help.. :)
Regards
Laiju.C.Babu