Differences

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

2014-11-18 2015-08-31
it's definitive, that password cannot be provided (martin) man pages on linux.die.net (martin)
Line 8: Line 8:
===== Use sudo on Login ===== ===== Use sudo on Login =====
-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://linux.die.net/man/8/sudo|sudo]]'' command straight after login to change a user, before file transfer session starts.
[[ftp|FTP]] protocol does not allow this. [[ftp|FTP]] protocol does not allow this.
Line 24: Line 24:
  sudo -s   sudo -s
-However 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''):+However 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://linux.die.net/man/8/sudo|sudo]]'' documentation to learn how to do that. For example you can add following line to ''[[http://linux.die.net/man/5/sudoers|sudoers]]'' file (''/etc/sudoers''):
  yourusername ALL=NOPASSWD: ALL   yourusername ALL=NOPASSWD: ALL

Last modified: by martin