Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using WinSCP to access Unix computers. How can I change user after I have logged into a Unix server using WinSCP?

E.g. I have personal account in Unix computer A. I can log into this computer using PuTTY and then change user to root user

$sudo /usr/bin/su - rootuser

How can I do the same thing using WinSCP? I don't know the password for rootuser.

share|improve this question

1 Answer 1

There is a FAQ for this question on WinSCP site:
How do I change user after login (e.g. su root)?

You need to specify the sudo command in WinSCP session settings, as a custom shell (if you are using SCP) or use sudo in a custom SFTP server startup command (if you are using SFTP).

Though there are some limitations, notably that you need to configure sudo not to require a password.

See the link for details.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.