About 2,460,000 results
Open links in new tab
  1. What are the differences between "su", "sudo -s", "sudo -i", "sudo …

    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 …

  2. linux - What does "sudo -s" actually do? - Super User

    Jul 6, 2011 · 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 …

  3. 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 -' …

  4. sudo - How can I add a user as a new sudoer using the command …

    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 …

  5. sudo - 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 …

  6. wsl2 - How to reset my WSL Ubuntu password? - Super User

    Feb 9, 2024 · I forgot my WSL Ubuntu password, needed to run sudo command. After running the folowing command lead@kernel:~$ sudo su I got this Sorry, try again Any alternatives?

  7. How can I use Docker without sudo? - Ask Ubuntu

    On Docker's documentation pages, all example commands are shown without sudo, like this one: docker ps On Ubuntu, the binary is called docker.io. It also does not work without sudo: sudo …

  8. 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 …

  9. 'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter ...

    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 …

  10. sudo - I want to copy a directory from one place to another via the ...

    Nov 17, 2011 · I want to copy a directory from one place to another folder. sudo cp is the command, but after that what should I type? The destination or source first?