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: su after a connection

Please read FAQ to learn how to switch user.
martin

Re: su after a connection

Thanks for hint. I haven't known about the 'sudo' and 'super'. I'll think about utilizing them.
dasr

Re: su after a connection

martin wrote:

IMHO you cannot get around that. 'su' needs PTY for security reasons. So to say: you need to be human to run 'su', and WinSCP is not a human :-) For example you cannot create file with your password and redirect it as input to 'su'. It will detect that. If you find some solution, let me know, I'm interested.


How about using sudo or super? That wouldn't need access to tty (at least when configured to not ask password).
martin

Re: su after a connection

Anonymous wrote:

su requires user input ( the password! ), how do you get around that? Or am I missing something obvious?

IMHO you cannot get around that. 'su' needs PTY for security reasons. So to say: you need to be human to run 'su', and WinSCP is not a human :-) For example you cannot create file with your password and redirect it as input to 'su'. It will detect that. If you find some solution, let me know, I'm interested.
Guest

Re: su after a connection

martin wrote:

You cannot execute 'su' in WinSCP session. At least most of the servers refuse to execute 'su' for session with not allocated PTY. But you may try it from 'Console' window.


su requires user input ( the password! ), how do you get around that? Or am I missing something obvious?

mike
martin

Re: su after a connection

You cannot execute 'su' in WinSCP session. At least most of the servers refuse to execute 'su' for session with not allocated PTY. But you may try it from 'Console' window.
cruiser

su after a connection

I'd rather not store su passwords, but I do like to keep profiles for WinSCP.

Is there a way to su after making a connection?
( mainly I need to chown or attrib files ):?:

thx
mike