- What are the differences between su, sudo -s, sudo -i, sudo su?
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 also acquires the root user's environment To see the difference between su and sudo -s, do cd ~ and then pwd after each of them
- sudo - Sudoers file, enable NOPASSWD for user, all commands - Ask Ubuntu
Preface This is a fairly complex question related to the sudoers file and the sudo command in general NOTE: I have made these changes on a dedicated machine running Ubuntu Desktop 13 04, that I use
- sudo - How do I login as root? - Ask Ubuntu
In that case, use: sudo su - to execute a login shell as root after auhenticating sudo, and that shell will not need sudo to run admin commands To return to the normal user shell, insert the command exit
- sudo - How can I create an administrator user from the command line . . .
I want to create a user with administrative privileges and all the regular setups like home directory Is there a adduser parameter to give the user sudo powers automatically? What are the default
- sudo: unable to resolve host {hostname}: Temporary failure in name . . .
Recently, I tried to run the command, sudo apt-get update and got the Temporary failure in name resolution error But, after that the command proceeded and went on to
- unix - Command: sudo su - - Super User
Observed on Debian Wheezy with htop: 'sudo su -' has a child of 'su -', and 'su -' has a child of '-su' As mentioned above, root user can do 'su -' without entering password, so doing 'su -' inside of a root shell, you will have two different root shell processes ending the inner one will let you return back to the outer one
- linux - How to check if I have sudo access? - Super User
This extends the sudo timeout for another 5 minutes (or whatever the timeout is set to in sudoers) but does not run a command If your user is only allowed to run specific commands, this command will work, indicating you are allowed to run something with different privileges
- command line - Changing from user to superuser - Ask Ubuntu
Run sudo <command> and type in your login password, if prompted, to run only that instance of the command as root Next time you run another or the same command without the sudo prefix, you will not have root access
|