Differences
This shows you the differences between the selected revisions of the page.
| 2015-08-31 | 2015-08-31 | ||
| man pages on linux.die.net (martin) | &man_ref (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://linux.die.net/man/8/sudo|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 ''[[&man_ref(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://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''): | + | 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 ''[[&man_ref(8,sudo)|sudo]]'' documentation to learn how to do that. For example you can add following line to ''[[&man_ref(5,sudoers)|sudoers]]'' file (''/etc/sudoers''): |
| yourusername ALL=NOPASSWD: ALL | yourusername ALL=NOPASSWD: ALL | ||