- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: password changing problem. with sudo. [ hp-ux ...
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-18-2005 06:48 AM
03-18-2005 06:48 AM
password changing problem. with sudo. [ hp-ux 11i ] !!!
I have 50 hp-ux servers. And trying to add a user on the all server , through a script from a different system , through ssh .
I have done first step by this command with for - loop:
for i in `cat 50servers.list`
do
ssh -$i "sudo useradd -u220 -d/home/finance8 ar -s/usr/bin/sh -gusers -c 'Mohan K Babu/Finance/8' -m finance8 "
done
(found user added to all the systems)
Now wants to set the password:
I am running this commands ,
ssh $i "sudo passwd finance8"
ssh produx22 "sudo passwd -f finance8"
But its giving the following error:
$ ssh produx22 "sudo passwd finance8"
+ ssh produx22 "sudo passwd finance8"
Changing password for finance8
Last successful password change for finance8: NEVER
Last unsuccessful password change for finance8: Fri Mar 18 12:20:00 2005
pam_chauthtok: System error
$
Any idea as whats wrong.
Thanks,
Regards,
R.Veri.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 06:57 AM
03-18-2005 06:57 AM
Re: password changing problem. with sudo. [ hp-ux 11i ] !!!
/usr/lbin/usermod.sam -p "echo "12345abcdef"|/usr/lbin/makekey" -u "user_name"
The password will be set to 12345abcd (ef are salt chars) the password has to be 10 chars long (8 char pass + 2 chars salt)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 07:58 AM
03-18-2005 07:58 AM
Re: password changing problem. with sudo. [ hp-ux 11i ] !!!
Thanks for the replies,
1] Does expect tool is avaialable for hp-ux
2]As you told password has to be 10 characters long , 8 + 2 salt characters , whats this salt characters. Whats will be the effective password.
please suggest ,
Thank you,
R.Veri.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 08:03 AM
03-18-2005 08:03 AM
Re: password changing problem. with sudo. [ hp-ux 11i ] !!!
You can get expcat tool bellow.
http://hpux.connect.org.uk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 10:32 PM
03-18-2005 10:32 PM
Re: password changing problem. with sudo. [ hp-ux 11i ] !!!
I will update as i solve this issue,
Untill next time ,
Have a great weekend.
R.Veri.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2005 08:20 PM
03-20-2005 08:20 PM
Re: password changing problem. with sudo. [ hp-ux 11i ] !!!
I had the same problem a few days ago; it should work with the following option:
ssh -xt $Host "sudo passwd sapadm"
Regards
Adam