Tuesday, December 18, 2007

Root Terminal in Ubuntu

Ubuntu has the root account disabled.
You use sudo to run commands as root. if you need root access for some work:

  • To start a root shell, but keep the current shell's environment, use:
    sudo -s

  • To start a root shell (i.e. a command window where you can run root commands), starting root's environment and login scripts, use:
    sudo -i

There is also a root terminal that is in the Applications menu. You have to right-click to edit the menu’s and add a check to the root terminal in System Tools items.

Don’t forget to type 'exit' (or press Ctrl+D) to switch back to your normal user when you are done.

More information about sudo in Ubuntu wiki

No comments:

Post a Comment