Differences

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

2008-04-09 2008-07-31
4.1 Custom command to execute SFTP server binary may be specified. This allows using su to run SFTP server. (martin) remote_command#limitations (martin)
Line 22: Line 22:
  sudo su -   sudo su -
-You can do the above only if you are allowed to do ''sudo su'' without being prompted with password. See ''[[http://www.gratisoft.us/sudo/man/sudo.html|sudo]]'' documentation to learn how to do that. For example you can add following line to ''[[http://www.gratisoft.us/sudo/man/sudoers.html|sudoers]]'' file (''/etc/sudoers''):+However typically you will not be able to provide a password for ''su'', see [[remote_command#limitations|remote command execution limitations]]. So you may be able to do the above only if you are allowed to do ''sudo su'' without being prompted with password. See ''[[http://www.gratisoft.us/sudo/man/sudo.html|sudo]]'' documentation to learn how to do that. For example you can add following line to ''[[http://www.gratisoft.us/sudo/man/sudoers.html|sudoers]]'' file (''/etc/sudoers''):
  yourusername ALL=(ALL) NOPASSWD: ALL   yourusername ALL=(ALL) NOPASSWD: ALL
-Note that as WinSCP does not allocate TTY, you need to have ''sudoers'' option ''requiretty'' turned off (what is default).+Note that as WinSCP cannot implement terminal emulation, you need to have ''sudoers'' option ''requiretty'' turned off (what is default).

Last modified: by martin