- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Change 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
Discussions
Discussions
Forums
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
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
тАО01-16-2005 06:44 PM
тАО01-16-2005 06:44 PM
I've the same user on 100 hosts. I must change its password on every host. I'd like to do this with a script. I can use the remsh command. For example:
for host in $(cat host.txt)
do
remsh $host -n ..........
where hosts.txt is a file with the hosts' name
Any idea?
Thanks
Giada
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2005 06:49 PM
тАО01-16-2005 06:49 PM
Re: Change password
for a script to change pwd see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=141759
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2005 07:02 PM
тАО01-16-2005 07:02 PM
Re: Change password
your script works, if the rsh has been configured on all the 100 hosts, else the passwd will not change on which rsh has not been configured.
NIS can be used here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2005 07:22 PM
тАО01-16-2005 07:22 PM
Re: Change password
If you have 100 hosts, why not you implement NIS. You can centralize user passwd and group in one server.
regards
Rashid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2005 07:40 PM
тАО01-16-2005 07:40 PM
Re: Change password
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2005 08:26 PM
тАО01-16-2005 08:26 PM
Re: Change password
for host in 'cat host.txt'
do
rsh $host
echo " password for the user in host $host"
passwd
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2005 08:37 PM
тАО01-16-2005 08:37 PM
Re: Change password
please have a look at my previous reply re. updating multiple hosts automatically.
I though you may want to set passwords automatically on each host, rather than from the command line.
Can you please clarify: commandline or multiple change?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2005 09:51 PM
тАО01-16-2005 09:51 PM
Re: Change password
I want to change passwords (the password will be the same for all hosts) from one host automatically on all the other hosts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 12:04 AM
тАО01-17-2005 12:04 AM
Re: Change password
thanks for the clarification.
NIS would be the ideal solution, but as you said is not available.
So the process would be:
automatic
copy the password file from the host
modify it with sed
copy it back
or
manual
remsh $host -n vipw
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2005 01:34 AM
тАО01-17-2005 01:34 AM
Solution/usr/sam/lbin/usermod.sam -p wehbTH45!i login_name
The -p option allows you to place an encrypted password on the usermod.sam command line. To get the encrypted password, change the password on one of the machines, then copy the encrypted password for use with usermod.sam
Bill Hassell, sysadmin