Debian system root user Automatic Login

Source: Internet
Author: User

By default, Debian does not allow root logon.

(1) Allow Debian to log on as root

1) First, modify the gdm3 configuration file (/etc/gdm3/deamon. conf) and append the following line to the [Security] field:

Allowroot
= Ture

2) modify the logon Pam file of gdm3.

# Vi/etc/PAM. d/gdm3

Set auth required pam_succeed_if.so user! = Root quiet_success comment out // Add this row before #

(2) Enable Debian to log on automatically as the root user.

1) First, modify the gdm3 configuration file (/etc/gdm3/deamon. conf) and append the following two lines to the [daemon] field:

Automaticlogin = false // change to true

Automaticlogin = root // automatically log on as the root user

If you want to wait a few seconds to log on again, you can append the following content to the [daemon] field:

Timedloginenable = true

Timedlogin = root

Timedlogindelay = 5 // login with a latency of 5 seconds, which can be modified

2) modify the automatic logon Pam file of gdm3.

# Vi/etc/PAM. d/gdm3-autologin

Set auth required pam_succeed_if.so user! = Root quiet_success comment out. // Add # in front of the bank to cancel the restriction that Debian will not allow root login.

Restart.

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.