You are viewing the article How to Get Root on Ubuntu at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This article has been viewed 53,003 times.
To perform administrator tasks on Linux, you must have root access (superuser or superuser). Having a separate root account is common on most Linux distros, but Ubuntu disables superuser permissions by default. This is to prevent you from accidentally making errors and keep your system safe from suspicious intruders. To execute a command that requires root access, use sudo .
Steps
Execute root with sudo . command
- For example, the sudo /etc/init.d/networking stop command will stop the network service, while the sudo adduser command will add a new user to the system. These tasks all require super user permissions.
- You will be asked for your password before sudo executes the command. Linux will save your password for 15 minutes, so you don’t have to enter it again and again.
- For example, you can type gksudo gedit /etc/fstab to open the file “fstab” with the Gedit editor in the GUI.
- If you use KDE Window Manager, use kdesudo instead of gksudo .
- Enter the command sudo passwd root to create a root password, which essentially “activates” the account. Do not forget this password.
- Type sudo -i . Then enter the root password when prompted.
- The command line interpreter will change from $ to # , which means you already have root access.
Advanced User Activation
sudo
or gksudo
instead. If you absolutely must have a separate root account (as is the case with a request from some program your business uses, or this dedicated computer is only used by a single user), you can activate the super user account with some simple commands.
- Ubuntu does not recommend activating the super user account because this can bring risks to the system. [5] X Research Sources
- To disable the super user account, enter the command sudo passwd -dl root . [7] X Research Sources
Advice
- You should minimize logging in as a super user. You can execute most commands that require root privileges with sudo or gksudo .
- You can also use sudo –i to access other users’ shells on the system. For example, to become “tao”, you would type sudo –I tay and enter YOUR password (not that of “tao”) when prompted.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This article has been viewed 53,003 times.
To perform administrator tasks on Linux, you must have root access (superuser or superuser). Having a separate root account is common on most Linux distros, but Ubuntu disables superuser permissions by default. This is to prevent you from accidentally making errors and keep your system safe from suspicious intruders. To execute a command that requires root access, use sudo .
Thank you for reading this post How to Get Root on Ubuntu at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.
Related Search: