How to send remote command "su - root"?
I am connecting to a remote CentOS 5 machine, and root login is not permitted, so I would like to run the command "su - root" after login to gain root privileges.
When I connect using SCP, I have tried setting but this gives an error, and it will only connect properly if this is set to
If I choose and then type su - root as the Remote Custom command with 'Show Results in Terminal' UNchecked, I get an Invalid Access To Memory error.
If I type the same Remote Custom command with 'Show Results in Terminal' checked, I get a Command Failed with return code 1 and error message standard in must be tty.
Is there anyway for me to execute this su - root command and have it ask me for a password after (or during) the regular login?
Using v4.2.8 on Win XP Pro sp3.
Thanks
When I connect using SCP, I have tried setting
Environment > SCP/Shell > Shell: sudo su -
Environment > SCP/Shell > Shell: /bin/bash
If I choose
File > Custom Command > Enter...:
If I type the same Remote Custom command with 'Show Results in Terminal' checked, I get a Command Failed with return code 1 and error message standard in must be tty.
Is there anyway for me to execute this su - root command and have it ask me for a password after (or during) the regular login?
Using v4.2.8 on Win XP Pro sp3.
Thanks