- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- command to change password remotely
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
08-23-2001 06:38 AM
08-23-2001 06:38 AM
I have 3 machines that needs new added accounts in password file be sync. All I need is, once I change the password on one of the machines, it will propagate to the other two. My problem with remote execution is that passwd command needs interactive inputs, so I can't changed the password remotely. Editing password file is also a risky thing to do. Is there a tool to change the password remotely like executing a command and passing the
thanks
joks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2001 06:52 AM
08-23-2001 06:52 AM
Re: command to change password remotely
You may get answer in this link.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x9e517e990647d4118fee0090279cd0f9,00.html
Good luck,
-USA-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2001 06:54 AM
08-23-2001 06:54 AM
SolutionThere is a trick to do this via telnet:
for HOST in `cat hostlist`
do
( sleep 2
echo ${username}
sleep 2
echo ${oldpasswd}
sleep 2
echo "passwd"
sleep 2
echo p # when trusted system
sleep 2
echo "${newpasswd}"
sleep 2
echo "${newpasswd}"
sleep 2
echo exit
sleep 5 ) | telnet $HOST
done
The sleeps are necessary to slow the echo statements.
Hope this Helps.
MvH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 12:47 AM
08-24-2001 12:47 AM
Re: command to change password remotely
(I hope I got your name right!)
Whilst all the above is perfectly OK you are re-inventing the wheel! There are lots of products which do this (and more)
NIS, NIS+, dce, Kerbros, LDAP....
Probably the easiest is NIS/NIS+. They have the added advantage of being free (well once you've paid for HP-UX...).
I would seriously look at NIS/NIS+ as it will simplify the management of your computers for passwords (hosts, groups, services .....).
I have yet to see an implementation of automated password syncing that is not flawed in some way. In general, they require constant attension, hence you spend more time fixing problems, less time doing useful things.
As the guys in the USA say, thats my 2 cents worth
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2001 09:56 AM
08-27-2001 09:56 AM
Re: command to change password remotely
just use SAM for one time to modify the password of a
dummy user, then look into the "SAM log" - in there
you will find the command line SAM uses to actually do
it!
Next time use this command...
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 07:12 PM
08-28-2001 07:12 PM
Re: command to change password remotely
thanks a lot..
joks