1838662 Members
8064 Online
110128 Solutions
New Discussion

Re: change root password

 
Ralf Buchhold
Regular Advisor

change root password

Hello
is it possible to change the root password from an remote system. I look in the forum, but I dont find any automatic solution.
Thanks
Ralf
5 REPLIES 5
Peter Godron
Honored Contributor

Re: change root password

Ralf,
have you thought about an expect script?
Ralf Buchhold
Regular Advisor

Re: change root password

Hello Peter
I dont know about an expect script

By
Ralf
Peter Godron
Honored Contributor

Re: change root password

Peter Godron
Honored Contributor

Re: change root password

Ralf,
did my links help? Do you need any further help?
Please update.
Carles Viaplana
Valued Contributor

Re: change root password

Hello Ralf,

You can use the remsh or rexec commands to perform any task as if you were connected.

Long time ago I did an script changes passwords using ssh command. Unfortunatelly I lost this script. Unfortunatelly I lost it.

The idea is to create new line for root user and then change it on destination server file /etc/passwd using remsh, rexec or ssh commands.

I hope it can helps you.
Regards,

Carles