Syntactic Confectionery Delight | |
PerlMonks |
Change user to root using ssh::expectby want2bemonk (Initiate) |
on Sep 01, 2009 at 18:32 UTC ( [id://792713]=perlquestion: print w/replies, xml ) | Need Help?? |
want2bemonk has asked for the wisdom of the Perl Monks concerning the following question: Hi , I am trying to do a "su -" in a remote machine and run some commands as root. With the below script i am able to login to the remote machine, but i get "su: incorrect password" error even when the password is correct, i guess i am not passing the password in the correct format. Please look at the below code and let me know where i am going wrong Thanks.
Content of the log file : Password: Last login: Tue Sep 1 23:53:01 2009 from poseidon.com^M testusr@poseidon.com:~> testusr@etshmctbox10:~> hscpe testusr@poseidon.com:~> Password: su: incorrect password testusr@etshmctbox10:~>
Back to
Seekers of Perl Wisdom
|
|