Operating System - HP-UX
1753331 Members
5197 Online
108792 Solutions
New Discussion

How can I reset the root password remotely on a trusted system?

 
jsalas09
Visitor

How can I reset the root password remotely on a trusted system?

I am trying to use this command inside a korn shell script:

 

ssh root@<hostname>  "/usr/sam/lbin/usermod.sam -p ${newpassword}) $LOGIN_NAME"

 

But is not working.

 

Thanks in advance Amigos!

 

2 REPLIES 2
donna hofmeister
Trusted Contributor

Re: How can I reset the root password remotely on a trusted system?

i can't tell from your example...is your new password encrypted?

 

anyhow....this might help:

http://h30499.www3.hp.com/t5/General/Encrypted-passwords-on-trusted-systems/m-p/4866455#M153267

 

jsalas09
Visitor

Re: How can I reset the root password remotely on a trusted system?

Yes it is; pwgen is a perl script that encrypts the new password.

 

Thanks for your time.