首页 > 编程知识 正文

linux系统的initramfs解决问题,她们的系统有问题武小鹰

时间:2023-05-04 21:30:43 阅读:225256 作者:4104

问题描述:

今天突然发现除了root之外的用户都启动不起来startx,报:

Fatal server error:

PAM authentication failed, cannot start X server.

Perhaps you do not have console ownership?

When reporting a problem related to a server crash, please send

the full server output, not just the last messages.

Please report problems to xfree86@xfree86.org.

giving up.

xinit: No such file or directory (errno 2): unable to connect to X server

xinit: No such process (errno 3): Server error.

Couldnt get a file descriptor referring to the console

解决思路:

检查/var/run/console.lock包含的用户名,而且/var/run/console/要存在。在进行认证时pam_console比较用户名是否同console.lock内容一致,如果不符,认证失败。/var/run/console/用来记录用户登录的次数,用户注销后console.lock就可以删除。

解决措施:

我使用的是oracle这个普通用户,在/var/run/console/下运行touch oracle命令创建了一个名为oracle的文件,重新运行startx就可以进入图形化界面了。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。