美文网首页
Debian12启用root用户

Debian12启用root用户

作者: 岑吾 | 来源:发表于2025-02-10 12:22 被阅读0次

一、启用 Root 登录 GNOME 桌面环境

1、 修改daemon.conf

vi /etc/gdm3/daemon.conf

在 [security] 下面添加AllowRoot=true

[security]
AllowRoot=true # 添加这一行

2、修改gdm-password

vi /etc/pam.d/gdm-password

将 auth required pam_succeed_if.so user != root quiet_success 这一行注释掉

二、设置中文

进入root用户、设置语言设置为China,注销重新登录发现还是英文。

找到/root/.profile文件,注释最后二行

# Installed by Debian Installer:"
#  no localization for root because zh_CN.UTF-8"
#  cannot be properly displayed at the Linux console"
#LANG=C
#LANGUAGE=C

相关文章

网友评论

      本文标题:Debian12启用root用户

      本文链接:https://www.haomeiwen.com/subject/wcgxpjtx.html