
What are the differences between "su", "sudo -s", "sudo -i", "sudo su"?
Oct 22, 2011 · 81 sudo lets you run commands in your own user account with root privileges. su lets you switch user so that you're actually logged in as root. sudo -s runs a shell with root privileges. sudo -i …
What is the difference between 'su -' , 'sudo bash' and 'sudo sh'?
sudo bash & sudo sh: Anything after the sudo is a program to run - so in these cases you are asking to run a couple of shells - bash and dash respectively. use man bash and man sh for more details on …
What are some of the basic sudo commands? - Ask Ubuntu
10 sudo (superuser do) is a great tool for restricting access to the root account (or other accounts). In normal use, it is setup so that people in the wheel group can run commands as root if they give it …
command line - Execute sudo without Password? - Ask Ubuntu
Jun 6, 2012 · Every time I issue a sudo command; the system asks for the user password (which is good in its own way). However I was thinking; without activating the root account; how can I execute the …
How do I run a 'sudo' command inside a script? - Ask Ubuntu
Feb 25, 2014 · It is rarely a good idea to have sudo inside scripts. Instead, remove the sudo from the script and run the script itself with sudo: sudo myscript.sh That way, all commands within the script …
sudo - How do I login as root? - Ask Ubuntu
To see the actual configuration, use less /etc/sudoers. To edit the file, we should use the command visudo with root privileges, which will check for possible syntax errors or if the file is being edited right …
command line - 'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does ...
Nov 13, 2013 · sudo su - This time it is a login shell, so /etc/profile, .profile and .bashrc are executed and you will find yourself in root's home directory with root's environment. sudo -i It is nearly the same as …
Sudoers file, enable NOPASSWD for user, all commands
Aug 19, 2013 · It seems is a good practice to create the wheel group for non-password sudo authentication instead of altering sudo group itself. sudo groupadd wheel then in file /etc/sudoers add …
sudo - How can I add a user as a new sudoer using the command line ...
If you do not want to give the user account full root access, you need to edit the /etc/sudoer file with visudo (it makes sure that you do not have any syntax errors in the file and lose sudo capability …
How to run a cron job using the sudo command - Ask Ubuntu
Is it possible to run a cron job which needs the sudo command? Like: sudo rm somefile