w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
becoming root in terminal? sudo bash vs root#

There is no command called root#, which is why it says "Command not found". There are multiple ways to get an interactive root shell, but root# is not one of them.

  1. sudo bash - type your own password
  2. sudo -i - type your own password
  3. sudo su - type your own password
  4. su - type the root password.
  5. ssh root@localhost - type the root password.

Note that all the places where I said "type your own password" do not require a password if you have the following line in your sudoers file:

<my_User_name>   ALL=(ALL:ALL) NOPASSWD: ALL

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.