免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2301 | 回复: 3
打印 上一主题 下一主题

[Linux资讯] redhat 中更改etc/passwd后开机登入不了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-09-21 11:47 |只看该作者 |倒序浏览
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

论坛徽章:
0
2 [报告]
发表于 2012-09-21 15:49 |只看该作者
最简单的办法,用备份的passwd文件改回来,或者从其他机器对照下passwd文件,改改

论坛徽章:
0
3 [报告]
发表于 2012-09-22 15:56 |只看该作者
本帖最后由 prints 于 2012-09-22 15:58 编辑

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

论坛徽章:
20
CU大牛徽章
日期:2013-03-13 15:29:072015亚冠之阿尔希拉尔
日期:2015-09-12 09:33:562015年亚冠纪念徽章
日期:2015-09-22 17:12:202015亚冠之本尤德科
日期:2015-10-29 16:18:18神斗士
日期:2015-11-23 13:37:23青铜圣斗士
日期:2015-12-07 10:14:28平安夜徽章
日期:2015-12-26 00:06:3015-16赛季CBA联赛之佛山
日期:2016-01-18 08:59:06shanzhi
日期:2016-06-17 17:59:3115-16赛季CBA联赛之同曦
日期:2016-11-03 14:43:552015七夕节徽章
日期:2015-08-21 11:06:17丑牛
日期:2014-12-30 16:06:17
4 [报告]
发表于 2012-09-22 16:53 |只看该作者
救援模式再修改回来
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP