当我以普通用户身份登录时,运行 CentOS 6.3 的 PC 断电了。从那时起,当我尝试从 GUI 登录时,我的屏幕闪烁为黑色,然后返回到登录屏幕,没有任何消息(就像我的用户被拒绝一样)。我仍然可以以 root 身份登录。
我检查了 /etc/passwd 文件,一切正常。
以下是 /var/log/messages 行的部分转储,链接到登录和立即注销:
Jan 7 09:06:59 localhost acpid: client connected from 3054[0:0]
Jan 7 09:06:59 localhost acpid: 1 client rule loaded
Jan 7 09:07:00 localhost rtkit-daemon[2701]: Sucessfully made thread 3107 of process 3107 (/usr/bin/pulseaudio) owned by '42' high priority at nice level -11.
Jan 7 09:07:00 localhost rtkit-daemon[2701]: Sucessfully made thread 3109 of process 3107 (/usr/bin/pulseaudio) owned by '42' RT at priority 5.
Jan 7 09:07:00 localhost gdm-simple-greeter[3094]: Gtk-WARNING: gtkwidget.c:5460: widget not within a GtkWindow
Jan 7 09:07:00 localhost rtkit-daemon[2701]: Sucessfully made thread 3113 of process 3107 (/usr/bin/pulseaudio) owned by '42' RT at priority 5.
Jan 7 09:07:00 localhost rtkit-daemon[2701]: Sucessfully made thread 3114 of process 3107 (/usr/bin/pulseaudio) owned by '42' RT at priority 5.
Jan 7 09:07:08 localhost acpid: client 3054[0:0] has disconnect
关于调试/解决这个问题有什么建议吗?
答案1
找到了问题的原因。
Ctrl我可以通过++登录Alt,F2但无法发出任何命令。该$PATH
变量已经过调整,并且没有引用正确的目录。解决$PATH
问题就解决了。
感谢您的提示!