Hi,
I am getting stuck in SSHLibrary, if anybody any have an idea, please share with me.
Issue - Not able change the user on the same server; using sudo su - user
login to the server and than have to switch user " sudo su - user"
code -
Open Connection localhost
${output}= Login mainuser userpass
Should Contain ${output} mainuser@host1:~$
${stdout1}= Execute Command sudo su - user2; xxxxxx
${stdout2}= Execute Command whoami
Should Be Equal ${stdout1} ${stdout2}
Close Connection
outpur :-
20150125 18:26:01.024 : INFO : Executing command 'sudo su - user2; xxxxxx'.
20150125 18:26:01.067 : INFO : Command exited with return code 127.
Thanks in advance.