Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: How to send remote command "su - root"?

martin wrote:

If I choose
File > Custom Command > Enter...:
and then type su - root as the Remote Custom command with 'Show Results in Terminal' UNchecked, I get an Invalid Access To Memory error.

I'll send you a debug version to resolve this.

This bug has been added to tracker.
martin

Re: How to send remote command "su - root"?

jsherk wrote:

When I connect using SCP, I have tried setting
Environment > SCP/Shell > Shell: sudo su -
but this gives an error, and it will only connect properly if this is set to
Environment > SCP/Shell > Shell: /bin/bash

Please read FAQ. If that does not help, come back.

If I choose
File > Custom Command > Enter...:
and then type su - root as the Remote Custom command with 'Show Results in Terminal' UNchecked, I get an Invalid Access To Memory error.

I'll send you a debug version to resolve this.

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?

No. It is explained in the FAQ above.
jsherk

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
Environment > SCP/Shell > Shell: sudo su -
but this gives an error, and it will only connect properly if this is set to
Environment > SCP/Shell > Shell: /bin/bash


If I choose
File > Custom Command > Enter...:
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