copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
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
linux - What does sudo -s actually do? - Super User The two aren't really inconsistent - the sudo command always changes user, either to root, or to the user you specify with the -u switch All the -s does is provide a shortcut for starting a shell as that user
sudo su - vs sudo -i vs sudo bin bash - when does it matter . . . 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 sudo su - The -i (simulate initial login) option runs the shell specified by the password database entry of the target user as a login shell
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
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
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 altogether) in a way that you specify what commands this user (or a new group) can execute as root
Is there any sudo command for Windows? - Super User If on the other hand Bob does "sudo acommand" the command is still run as Bob, but with elevated permissions - just like the Linux sudo command To prevent any user from being able to sudo you have to define a sudoers user group that contains the list of the normal users that have permission to elevate using sudo