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

    Oct 22, 2011 · 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 …

  2. What is the difference between 'su -' and 'su root'?

    su - switches to the superuser and sets up the environment so that it looks like they logged in directly. su root switches to the user named root and doesn't simulate directly logging in. If the …

  3. Why do we use su - and not just su? - Unix & Linux Stack Exchange

    su - username sets up the shell environment as if it were a clean login as the specified user, it access and use specified users environment variables, su username just starts a shell with …

  4. su - user Vs sudo su - Unix & Linux Stack Exchange

    Aug 22, 2018 · Secondly: sudo -i and su - do the same thing (su - is equivalent to su --login), using different authorization mechanism: su verifies the password for the root account, while …

  5. Is there a single line command to do `su`? - Ask Ubuntu

    If you write a password in a command like su <username> -p <password>, it would be stored in plain text in your bash history. This is certainly a huge security issue. If you need to run …

  6. bash - su options - running command as another user - Unix

    $ sudo su -c whoami nobody [sudo] password for oli: nobody When your command takes arguments you need to quote it. If you don't, strange things will occur. Here I am —as root— …

  7. su vs sudo -s vs sudo -i vs sudo bash - Unix & Linux Stack Exchange

    su - means environment variables will be reset to root and su means environment variables as old user. for example: root's home directory if you use su - or old user home directory if you use …

  8. How do I set the root password so I can use su instead of sudo?

    Stack Exchange Network. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their …

  9. Why `su` gives "su: Authentication failure" even when running as …

    Apr 21, 2020 · Somewhat like in How to suppress su authentication failure warning?, but it actually does not run the command at all. # su limited su: Authentication failure # su -s …

  10. Why am I getting "Authentication failure" when running the "su" …

    su asks for the password of the account you're trying to login. It's usage (simplified): su username When omitting username, the username default to root. Since the root password is disabled by …

Refresh