Differences
This shows you the differences between the selected revisions of the page.
2014-09-18 | 2014-11-18 | ||
no summary (149.254.241.67) | it's definitive, that password cannot be provided (martin) | ||
Line 24: | Line 24: | ||
sudo -s | sudo -s | ||
- | 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''): | + | 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''): |
yourusername ALL=NOPASSWD: ALL | yourusername ALL=NOPASSWD: ALL |