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
In the development process of Vue project, for th...
Docker is really cool, especially because it'...
Preface The essence of deadlock is resource compe...
Why is the title of the article “Imitation Magnif...
<> Operator Function: Indicates not equal t...
Table of contents 1. Block scope 1.1. let replace...
Today I found a problem in HTML. There are many d...
The table structure is as follows. There are only...
Copy code The code is as follows: <!DOCTYPE ht...
The fixed layout of the page header was previousl...
CSS naming rules header: header Content: content/c...
Table of contents Preface 1. Paste Events and Cli...
I recently started learning about database knowle...
After installing centos 8, the following error wi...
Design Intentions When developing a page, you oft...