Chinaunix

标题: redhat 中更改etc/passwd后开机登入不了 [打印本页]

作者: leolei0218    时间: 2012-09-21 11:47
标题: redhat 中更改etc/passwd后开机登入不了
You session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you may out of diskspace. Try logging in with one of the failsafe session to see if you can fix this program.

View Details:

/etc/gdm/PreSession/Default: Registering your session with utmp.

/etc/gdm/PreSession/Default: running:/usr/bin/sessreg -a -u
/var/run/utmp -x "/var/gdm/:0.Xservers"  -h "" -l ":0" "root"

Localuser:root being added to access control list
No Profile for user 'root' found
/bin/sh:/bin/bash
:No such file or directory

/bin/sh"line 0: exec:/bin/bash
:cannot execute : No such file or directory
作者: campspirit    时间: 2012-09-21 15:49
最简单的办法,用备份的passwd文件改回来,或者从其他机器对照下passwd文件,改改
作者: prints    时间: 2012-09-22 15:56
本帖最后由 prints 于 2012-09-22 15:58 编辑

你改过了什么还记得吗?开机引导没有进入登陆界面,就提示你给出的错误信息吗?是默认的图形下提示这个?你可以Ctrl+Alt+Fx来进入字符的控制台试试看能不能登陆,如果没有问题你把/etc/passwd-覆盖回/etc/passwd,如果这种方法不可行,你用光盘或者网络引导进入救援模式,再把备份的覆盖掉/etc/passwd
作者: yun_88    时间: 2012-09-22 16:53
救援模式再修改回来




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2