Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to remove the restriction of root login graphical interface in Ubuntu system

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

The main content of this article is "how to remove the restrictions on the root login graphical interface of the Ubuntu system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to lift the restrictions on the root login graphical interface of the Ubuntu system".

1. Set the initial password for root

(1) ordinary users log in to the system, open the terminal, and enter the command: sudo passwd root (use root permission to change the password for root)

(2) set root password

(3) repeat root password

Jaking@ubuntu:~$ sudo passwd root [sudo] password for uplooking:Enter new UNIX password:Retype new UNIX password:passwd: password updated successfullyJaking@ubuntu:~$ su-rootPassword:root@ubuntu:~#

two。 Modify the contents of / usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf file

Vim / usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf open the file and add two lines at the end of the file: greeter-show-manual-login=trueall-guest=falseroot@ubuntu:~# cat / usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf [Seat:*] user-session=ubuntugreeter-show-manual-login=trueall-guest=false

3. Go to the / etc/pam.d folder and modify the contents of gdm-autologin and gdm-passwd files

Gdm-autologin file comments out the line auth required pam_success_if.so usernames root quiet_success gdm-password files comment out the line auth required pam_success_if.so usernames root quiet_success root@ubuntu:~# cd / etc/pam.droot@ubuntu:/etc/pam.d# cat gdm-autologin | grep authauth requisite pam_nologin.so#auth required pam_succeed_if.so usernames root quiet_successauth optional pam_gdm.soauth optional pam_gnome_keyring.soauth required Pam_permit.soroot@ubuntu:/etc/pam.d# cat gdm-password | grep authauth requisite pam_nologin.so#auth required pam_succeed_if.so user! = root quiet_success@include common-authauth optional pam_gnome_keyring.so

4. Modify / root/.profile file

Change mesg n to tty-s & & mesg nroot@ubuntu:~# cat / root/.profile# ~ / .profile: executed by Bourne-compatible login shells.if ["$BASH"]; thenif [- f ~ / .bashrc]; then. ~ / .bashrcfifitty-s & & mesg n | | true

5. Restart Ubuntu and log in to the system using root

At this point, I believe you have a deeper understanding of "how to remove the restrictions on the root login graphical interface of the Ubuntu system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report