How do I login as root in UBUNTU
Simulate a root environment.
If you really need root access, you can simiulate 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.
Comments
Post a Comment
Thanks for your comment! :)