centos7下使用root免密码输入自动登陆

https://jingyan.baidu.com/article/9080802208f9edfd91c80ffa.html

centos7默认启动后,需要手动输入用户名密码才能登陆。有时候需要在centos7启动后不需要用户输入密码,即可自动登陆。本文主要针对给问题给出解决方法。

工具/原料

  • centos7

方法/步骤

  1. 1

    默认系统启动后,回进入登陆界面

    centos7下使用root免密码输入自动登陆

  2. 2

    如果需要使用root用户登陆,需要点击未列出,然后手动输入root,然后输入密码进行登陆

    centos7下使用root免密码输入自动登陆

  3. 3

    可以通过修改/etc/gdm/custom.conf文件,实现root用户免密码自动登陆

    centos7下使用root免密码输入自动登陆

  4. 4

    在[daemon]下增加

    AutomaticLoginEnable=True

    AutomaticLogin=root

    保存文件,然后重启查看效果

    centos7下使用root免密码输入自动登陆