Differences

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

2004-12-17 2005-04-29
no summary (martin) possible with sudo (martin)
Line 1: Line 1:
====== How do I change a user after login (e.g. su root)? ====== ====== How do I change a user after login (e.g. su root)? ======
-You cannot. SFTP protocol does not allow this.·With SCP you can potentially execute ''su root'' from the console dialog. But most of the servers (maybe all) require TTY terminal to execute ''su'' command. It makes them sure that a human is sitting by the client. Unfortunatelly WinSCP cannot use TTY terminal, because it is not compatible both with SFTP and SCP protocol.+[[protocols#sftp_ssh_file_transfer_protocol|SFTP protocol]] does not allow this. 
 + 
 +With [[protocols#scp_secure_copy_protocol|SCP protocol]] it can be possible, but only if you are allowed to do ''sudo su'' without being promted with password. See ''sudo'' documentation to elarn hot to do that. Then you can specify ''sudo su'' (''sudo su <username>'') as custom shell on //[[ui_login_scp#shell|SCP tab]]// of Login dialog.

Last modified: by martin