To set the root login method for a Debian system

Source: Internet
Author: User
Tags auth

The Debian desktop environment does not allow root logging by default, so you need to modify the configuration.

One, let Debian can use root login

1 First modify the GDM3 settings file (/etc/gdm3/daemon.conf) and append the following line to the [Security] field:

The code is as follows:

[Security]

Allowroot = True

2) finally modify the gdm3 login Pam file:

The code is as follows:

Vi/etc/pam.d/gdm-password

Auth Required pam_succeed_if.so user!= root quiet_success comment out//line before add #

Second, let Debian automatically log in as root

1 First modify the GDM3 settings file (/etc/gdm3/daemon.conf), add the following two lines after the [Daemon] field:

The code is as follows:

Automaticloginenable =true//change to True

#AutomaticLogin =root//log in automatically with root

If you want to wait a few seconds to log in again, you can append the following in the [Daemon] field:

The code is as follows:

Timedloginenable = True

Timedlogin = root

Timedlogindelay = 5//Delay 5 sec Login, can be modified

2) finally modify the GDM3 automatic login Pam file:

The code is as follows:

Vi/etc/pam.d/gdm-autologin

Comment out [/ode]auth required pam_succeed_if.so user!= root Quiet_success[/code]. Add # in front of the line to remove the restriction that Debian does not allow root login.

Reboot the System!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.