run command after sudo -s
can i run the command
sudo -s ls to list the files or any command sudo -s commmand please help |
The "-s" option to "sudo" begins a root session (exit via the "exit" command) so the commands issued following the input of "sudo -s" would be issued as root. For any information on any command you wish to know more about please use the "man" command -
Code:
man sudo |
typical command in one of my corporate servers I administer:
Code:
sudo -u liferay -s /etc/init.d/jetty6 restart Code:
sudo -u liferay -s sudo /etc/init.d/httpd restart |
@gillbertiddio; that doesn't seem to be what it says here http://linux.die.net/man/8/sudo
Quote:
|
All times are GMT -5. The time now is 02:12 AM. |