To simplify permissions and other issues, we can log on to and use the Ubuntu system as a root user, while Ubuntu does not enable the root user by default, which requires the following settings:
- Sudo-s enters the root user permission Mode
- Vim/etc/lightdm. conf
[Seatdefaults]
Greeter-session = unity-greeter
User-session = Ubuntu
Greeter-show-manual-login = true #Manually enter the user name and password for logging on to the system
Allow-Guest = false #Guest not allowedLogin
- Start the root account: sudo passwd Root
The following describes the specific operations of Jialin:
Step 1: Enter Root User Permissions:
Use Sudo-s to enter the root user permission Mode
Enter the password to enter the root mode.
At this point, we found that it is already a root user.
Step 2: Modify the "/etc/lightdm. conf" file:
At this time, the system prompts that we do not have the vim editor. Install the vim Editor:
Enter "Y" to complete the installation.
Modify the "/etc/lightdm. conf" file again:
Enter the file:
Enter "I" to enter the insert and modify mode, and change the file:
Press "ESC" and enter ": WQ" to save and exit.
Step 3: Start the root account: sudo passwd Root
Press Enter:
In this case, enter the password of the root account and set it as follows:
Restart the system:
The system entry page is as follows:
Click "login ":
Enter the "root" account:
Enter the password to log on to the system:
At this point, we found that the account we logged on to is the root account.