Differences

This shows you the differences between the selected revisions of the page.

2010-11-17 2011-07-30
no summary (72.233.208.36) sftp ftp scp (martin)
Line 1: Line 1:
====== How do I change user after login (e.g. su root)? ====== ====== How do I change user after login (e.g. su root)? ======
-None of the protocols ([[protocols#sftp|SFTP]], [[protocols#ftp|FTP]] and [[protocols#scp|SCP]]) supported by WinSCP allow the user to be changed in the middle of file transfer session. You need to start the session with the correct user.+None of the protocols ([[sftp|SFTP]], [[ftp|FTP]] and [[scp|SCP]]) supported by WinSCP allow the user to be changed in the middle of file transfer session. You need to start the session with the correct user.
===== Direct Login ===== ===== Direct Login =====
Line 10: Line 10:
In some cases (with Unix/Linux server) you may be able to use ''[[http://www.gratisoft.us/sudo/man/sudo.html|sudo]]'' command straight after login to change a user, before file transfer session starts. In some cases (with Unix/Linux server) you may be able to use ''[[http://www.gratisoft.us/sudo/man/sudo.html|sudo]]'' command straight after login to change a user, before file transfer session starts.
-[[protocols#ftp|FTP]] protocol does not allow this.+[[ftp|FTP]] protocol does not allow this.
-The [[protocols#scp|SFTP]] and [[protocols#scp|SCP]] protocols allow for this, but the actual method is platform dependent.+The [[scp|SFTP]] and [[scp|SCP]] protocols allow for this, but the actual method is platform dependent.
With SFTP protocol, you can use //[[ui_login_sftp#protocol_options|SFTP server]]// option on //SFTP tab// of Login dialog to execute SFTP binary under different user. With OpenSSH server, you can specify: With SFTP protocol, you can use //[[ui_login_sftp#protocol_options|SFTP server]]// option on //SFTP tab// of Login dialog to execute SFTP binary under different user. With OpenSSH server, you can specify:

Last modified: by martin