How to open root account in Ubuntu20.04

After the installation of Ubuntu 20.04, there is no root account login permission by default. Follow the steps below to complete the root account login in one step after booting. Will you find it convenient after reading it?

1. first step

Log in to the system as a normal user and create a password for the root user

Enter the command in the terminal: sudo passwd root

Then enter the set password, enter it twice, so that the root user password is set (note that the password is not echoed under the Linux system)

2. Step 2

Modify the 50-ubuntu.conf file

Enter the command in the terminal: sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

Add the following two lines at the end of the file:

greeter-show-manual-login=true
all-guest=false

3. third step

Modify the gdm-autologin file

Enter the command in the terminal: sudo gedit /etc/pam.d/gdm-autologin to open the file

Add # before the comment out the third line auth required pam_succeed_if.so user != root quiet_success

4. the fourth step

Modify gdm-password file

Enter the command in the terminal: sudo gedit /etc/pam.d/gdm-password to open the file

Add # before the comment out the third line auth required pam_succeed_if.so user != root quiet_success

5. the fifth step

Modify the /root/.profile file

Enter the command in the terminal: sudo gedit /root/.profile to open the file

Modify the line mesg n 2> /dev/null || true at the end of the file to
tty -s&&mesg n || true

6. last step

Hurry up and log out and log in again to try it

Choice not listed?
Then enter root and the password you set before, you can successfully log in

Click for reference source

The next article will share with you how to copy and paste the text in the Windows operating system to the Linux system under the VMware virtual machine

Recommended Posts

How to open root account in Ubuntu20.04
How to open the ubuntu system in win10
How to install Helm in Ubuntu
How to use hanlp in ubuntu
How to install mysql in Ubuntu 14.04
How to install mysql in Ubuntu 14.04
How to add swap partition in Ubuntu
How to easily compile openJDK in Ubuntu
How to install cuda10.1 driver in Ubuntu
How to add users to Sudoers in Ubuntu
How to delete redundant kernels in Ubuntu
How to delete redundant kernels in Ubuntu
How to set static IP in ubuntu14.04
How to modify software source in Ubuntu 7.10
How to open python in different systems
How to hide applications in Ubuntu Dash?
How to upgrade to Ubuntu 20.04
How to upgrade to Ubuntu 20.04
How to configure TensorFlow use environment in Ubuntu
Wsl sets the default account to root (ubuntu18.04)
How to configure /var/log/messages in Ubuntu system log
How to change root user password on Ubuntu
How to install Hadoop in standalone mode on Ubuntu 18.04
How to view detailed network routing table in Ubuntu
How to use Putty to log in to ubuntu installed in VirtualBox
ubuntu7.10 installed to 3D open
How to modify time zone and time in ubuntu system
Example of how to modify ip address in Ubuntu20.04
How to create a Python virtual environment in Ubuntu 14.04
How to upgrade to Ubuntu 16.04 LTS
How to open https on nginx server under Ubuntu
How to control the ubuntu system in win10 through ssh
How to install memcache and start it in ubuntu environment
How to compile and install PHP and Nginx in Ubuntu environment
How to map shared disk to window in linux under Ubuntu
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install Java on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to install Elasticsearch on Ubuntu 20.04
How to install Protobuf 3 on Ubuntu
How to install Nginx on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
How to wrap in python code
How to install PHP7.4 in CentOS
How to install Bacula-Web on Ubuntu 14.04
How to install PostgreSQL on Ubuntu 16.04
How to install Git on Ubuntu 20.04
How to compile ijkplayer-android under ubuntu
How to install Anaconda3 on Ubuntu 18.04
How to install Jenkins on Ubuntu 16.04
How to install MemSQL on Ubuntu 14.04
Tencent Cloud Ubuntu 18.04 open root login
How to install Go on Ubuntu 20.04
How to install MongoDB on Ubuntu 16.04
How to install PrestaShop on Ubuntu 16.04
How to upgrade to PHP 7 on Ubuntu 14.04
How to omit parentheses in Python
How to install Python 3.8 on Ubuntu 18.04
How to write classes in python