About 1,180,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. su vs sudo -s vs sudo -i vs sudo bash - Unix & Linux Stack Exchange

    What is the difference between the following commands: su sudo -s sudo -i sudo bash I know for su I need to know the root password, and for sudo I have to be in the sudoers file, but once …

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

  4. apt - How to install updates via command line? - Ask Ubuntu

    Use this: sudo apt update # Fetches the list of available updates sudo apt upgrade # Installs some updates; does not remove packages sudo apt full-upgrade # Installs updates; may also …

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

  6. What's exactly the point of the sudo command, in terms of security?

    Now, enter sudo. sudo works on a different principle. Instead of requiring users to know the root account login, sudo would be used to allow users to escalate themselves into the root account …

  7. How to avoid being prompted for a password by sudo?

    May 22, 2014 · The echo 'password' | sudo -kS ls solution works, but it has a few security drawbacks, most of which have already been mentioned in the comments to terdon's answer.

  8. sudo - How to come out of root user? - Ask Ubuntu

    Jun 30, 2014 · Now I have come out or log out or disable root access. For that I tried sudo passwd -dl root. Then it shows the message: passwd: password expiry information changed. But I still …

  9. How do I grant sudo privileges to an existing user? - Ask Ubuntu

    I want to grant a newly created user sudo privileges in Ubuntu. I tried sudo adduser hduser admin but it says no admin group exists. How can I do it?

  10. bash - How to sudo + exec? - Unix & Linux Stack Exchange

    Jul 10, 2019 · I need to use sudo to run process as a different user. But how to use sudo with exec like: sudo -u www-data exec php -r 'sleep(2); echo 5;' to replace the sudo process? Why …