且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

The GDM user does not exist.Please correct gdm configration and restart gdm

更新时间:2022-10-04 15:14:16

今天回到公司,习惯性打开笔记本电脑的虚拟机时候启动系统,发现用Putty平时连接的ip无法连接,切换到虚拟机发现无法进入桌面,停留在命令行下提示输入用户名,输入root的正确密码登陆无效,尝试使用普通账号和密码登陆也无效,一直输入到第三次都无效就弹出“The GDM user does not exist.Please correct gdm configration and restart gdm”这个画面后又返回在命令行继续输入用户名和密码,立马重启进入单用户模式想使用passwd改root密码不成功,发现cat /etc/passwd里面的内容全部没有了(图1-图8)

The GDM user does not exist.Please correct gdm configration and restart gdm

The GDM user does not exist.Please correct gdm configration and restart gdm

The GDM user does not exist.Please correct gdm configration and restart gdm

The GDM user does not exist.Please correct gdm configration and restart gdm

The GDM user does not exist.Please correct gdm configration and restart gdm

The GDM user does not exist.Please correct gdm configration and restart gdm

The GDM user does not exist.Please correct gdm configration and restart gdm

The GDM user does not exist.Please correct gdm configration and restart gdm

 立马将passwd备份copy到/etc/passwd下(幸好在做grep,sed的试验时候,将passwd这个文件copy多一份出来),将其覆盖粘贴后,reboot重启可以重新进入系统了(图9-图14)。

The GDM user does not exist.Please correct gdm configration and restart gdm

The GDM user does not exist.Please correct gdm configration and restart gdm

The GDM user does not exist.Please correct gdm configration and restart gdm

The GDM user does not exist.Please correct gdm configration and restart gdm

The GDM user does not exist.Please correct gdm configration and restart gdm

The GDM user does not exist.Please correct gdm configration and restart gdm








     本文转自wsw26 51CTO博客,原文链接:http://blog.51cto.com/wsw26/1729023,如需转载请自行联系原作者