Written in advance: In the following steps, you need to enter commands in the terminal. Friends who view the blog on the computer can directly copy and paste it into the terminal. Friends who view it on the mobile phone please note that the spaces in the command are required, otherwise the operation will fail. 1. Set the initial password for root (1) Log in to the system, open the terminal, and enter the command: sudo passwd root (Set a password for the root user) (2) Set a root password (it is recommended to keep it simple, it does not need to be complicated); (3) Repeat the root password; 2. Modify the content of /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf file Terminal input: sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf Open the file and add the following two lines at the end of the file. Save and close it after completion (pay attention to this step, do not delete the original two lines in the file); greeter-show-manual-login=true all-guest=false 3. Enter the /etc/pam.d folder and modify the contents of the gdm-autologin and gdm-password files (refer to the command in step 2): gdm-autologin file comment out the line auth required pam_success_if.so user!=root quiet_success gdm-password file comment out the line auth required pam_success_if.so user!=root quiet_success Note: To make a comment, just add "#" before the line, for example: #auth required pam_success_if.so user!=root quiet_success 4. Modify the /root/.profile file Terminal input: sudo gedit /root/.profile Open the file and change the last line to the following: tty -s && mesg n || true Save and close, restart, and after restarting, select "Not Listed" and enter the account root and password; The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: A simple method to merge and remove duplicate MySQL tables
>>: Nodejs converts JSON string into JSON object error solution
As shown below: select a1,a2,a1+a2 a,a1*a2 b,a1*1...
MySql 8.0 corresponding driver package matching A...
This article shares simple HTML and music player ...
Solution to the data asymmetry problem between My...
The isnull() function cannot be used as a substit...
Because the Base images pulled by Docker, such as...
Recently I wrote in my blog that in the project l...
Table of contents 1. Check the MySQL status in th...
The first method: dynamically add a class to show...
Table of contents Preface VMware clone virtual ma...
1. Query process show processlist 2. Query the co...
Copy code The code is as follows: <iframe id=&...
There are many tasks to be done in search engine o...
Table of contents 1. Prototype Relationship 2. Pr...
Table of contents 1. Overview 2. Download the Ngi...