Getting Root Privileges in Ubuntu

 I needed to get root access to my files during the livedisk session.  This did the trick:

Simulate a root environment. If you really need root access, you can simulate root using sudo. This will provide you with unhindered root access, which means a mistyped command could destroy your system.

  • Enter the command sudo passwd root. This will create a password for your root account, essentially “enabling” it. Make sure you don’t forget this password.
  • Enter the command sudo -i. You will be asked for your root password.
  • Your prompt will change from $ to #, indicating you have root access.
  • To disable root access, enter the command sudo passwd -dl root.

Posted 07/05/2015 by lacithedog in Linux, Ubuntu

Tagged with , ,

%d bloggers like this: