su命令输入密码后,先进入root用户,因为非root用户编辑文件保存时,会提示无法保存。
vi /etc/gdm/custom.conf
【daemon】下新增两行,设置自动启动,自动启动默认为True,用户为root
# GDM configuration storage
[daemon]
AutomaticLoginEnable=True
AutomaticLogin=root
[security]
[xdmcp]
[chooser]
[debug]
# Uncomment the line below to turn on debugging
#Enable=true
reboot重启服务,重新创建session登录,username为root,密码为自己设置的系统密码
[root@localhost ~]# who am i
root pts/1 2021-12-06 18:15 (192.168.43.1)
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- igbc.cn 版权所有 湘ICP备2023023988号-5
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务