免费注册 查看新帖 |

Chinaunix

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

RunLevel 3 下为什么用root 用户进不去呢? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-16 08:16 |只看该作者 |倒序浏览
关于RunLevel 运行级别的问题
我使用的是Oracle EnterPrise Linux R5 u2 这版 请问为什么我从 RunLevel 5 级
用命令 :
#init 3
降到 3 级
级别是从5级的图形降到了3级字符,可是在login: 输入root  再输入passwd 确进不去了!???

请高手指点? 需要修改那些地方呢?

论坛徽章:
1
寅虎
日期:2015-01-23 02:35:47
2 [报告]
发表于 2008-07-16 09:30 |只看该作者
不应该,如果你图形能进的话,字符不该有问题,再试试

论坛徽章:
0
3 [报告]
发表于 2008-07-16 10:30 |只看该作者
真是不行的! 降到 3 只能 在远程用 ssh联进去 在kvm 上登录本机 无法登录 输入root 再输入密码 还是 login:  
帮帮我吧?:(

论坛徽章:
0
4 [报告]
发表于 2008-07-16 10:42 |只看该作者
没试过init 3

/etc/inittab

id:3:initdefault:   

重启试试,用root登陆看看

论坛徽章:
0
5 [报告]
发表于 2008-07-16 10:46 |只看该作者
一般登录这边的问题,和pam都有关系。跑个rpm -V pam去看是否有pam文件被改动。

论坛徽章:
0
6 [报告]
发表于 2008-07-16 11:52 |只看该作者
[root@bxrac01 etc]# rpm -V pam
.......T c /etc/pam.d/config-util
.......T c /etc/pam.d/other
....L... c /etc/pam.d/system-auth
.......T c /etc/security/access.conf
.......T c /etc/security/chroot.conf
.......T c /etc/security/console.handlers
.......T c /etc/security/console.perms
.......T c /etc/security/console.perms.d/50-default.perms
.......T c /etc/security/group.conf
S.5....T c /etc/security/limits.conf
.......T c /etc/security/namespace.conf
.......T c /etc/security/namespace.init
.......T c /etc/security/opasswd
.......T c /etc/security/pam_env.conf
.......T c /etc/security/time.conf
S.5....T   /sbin/pam_console_apply
S.5....T   /sbin/pam_tally
S.5....T   /sbin/pam_tally2
S.5....T   /sbin/pam_timestamp_check
S.5....T   /sbin/unix_chkpwd
S.5....T   /sbin/unix_update
.......T   /usr/share/locale/as/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/bn_IN/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/cs/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/de/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/es/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/fi/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/fr/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/gu/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/hi/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/hu/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/it/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/ja/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/km/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/kn/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/ko/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/ml/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/nb/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/nl/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/or/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/pa/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/pl/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/pt/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/pt_BR/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/ru/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/si/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/ta/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/tr/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/uk/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/zh_CN/LC_MESSAGES/Linux-PAM.mo
.......T   /usr/share/locale/zh_TW/LC_MESSAGES/Linux-PAM.mo
.......T d /usr/share/man/man5/access.conf.5.gz
.......T d /usr/share/man/man5/config-util.5.gz
.......T d /usr/share/man/man5/console.apps.5.gz
.......T d /usr/share/man/man5/console.handlers.5.gz
.......T d /usr/share/man/man5/console.perms.5.gz
.......T d /usr/share/man/man5/group.conf.5.gz
.......T d /usr/share/man/man5/limits.conf.5.gz
.......T d /usr/share/man/man5/namespace.conf.5.gz
.......T d /usr/share/man/man5/pam.conf.5.gz
.......T d /usr/share/man/man5/pam.d.5.gz
.......T d /usr/share/man/man5/pam_env.conf.5.gz
.......T d /usr/share/man/man5/system-auth.5.gz
.......T d /usr/share/man/man5/time.conf.5.gz
.......T d /usr/share/man/man8/PAM.8.gz
.......T d /usr/share/man/man8/pam.8.gz
.......T d /usr/share/man/man8/pam_access.8.gz
.......T d /usr/share/man/man8/pam_console.8.gz
.......T d /usr/share/man/man8/pam_console_apply.8.gz
.......T d /usr/share/man/man8/pam_cracklib.8.gz
.......T d /usr/share/man/man8/pam_debug.8.gz
.......T d /usr/share/man/man8/pam_deny.8.gz
.......T d /usr/share/man/man8/pam_echo.8.gz
.......T d /usr/share/man/man8/pam_env.8.gz
.......T d /usr/share/man/man8/pam_exec.8.gz
.......T d /usr/share/man/man8/pam_filter.8.gz
.......T d /usr/share/man/man8/pam_ftp.8.gz
.......T d /usr/share/man/man8/pam_group.8.gz
.......T d /usr/share/man/man8/pam_issue.8.gz
.......T d /usr/share/man/man8/pam_keyinit.8.gz
.......T d /usr/share/man/man8/pam_lastlog.8.gz
.......T d /usr/share/man/man8/pam_limits.8.gz
.......T d /usr/share/man/man8/pam_listfile.8.gz
.......T d /usr/share/man/man8/pam_localuser.8.gz
.......T d /usr/share/man/man8/pam_loginuid.8.gz
.......T d /usr/share/man/man8/pam_mail.8.gz
.......T d /usr/share/man/man8/pam_mkhomedir.8.gz
.......T d /usr/share/man/man8/pam_motd.8.gz
.......T d /usr/share/man/man8/pam_namespace.8.gz
.......T d /usr/share/man/man8/pam_nologin.8.gz
.......T d /usr/share/man/man8/pam_permit.8.gz
.......T d /usr/share/man/man8/pam_postgresok.8.gz
.......T d /usr/share/man/man8/pam_rhosts.8.gz
.......T d /usr/share/man/man8/pam_rootok.8.gz
.......T d /usr/share/man/man8/pam_rps.8.gz
.......T d /usr/share/man/man8/pam_securetty.8.gz
.......T d /usr/share/man/man8/pam_selinux.8.gz
.......T d /usr/share/man/man8/pam_shells.8.gz
.......T d /usr/share/man/man8/pam_stack.8.gz
.......T d /usr/share/man/man8/pam_succeed_if.8.gz
.......T d /usr/share/man/man8/pam_tally.8.gz
.......T d /usr/share/man/man8/pam_time.8.gz
.......T d /usr/share/man/man8/pam_timestamp.8.gz
.......T d /usr/share/man/man8/pam_timestamp_check.8.gz
.......T d /usr/share/man/man8/pam_umask.8.gz
.......T d /usr/share/man/man8/pam_userdb.8.gz
.......T d /usr/share/man/man8/pam_warn.8.gz
.......T d /usr/share/man/man8/pam_wheel.8.gz
.......T d /usr/share/man/man8/pam_xauth.8.gz
.......T d /usr/share/man/man8/unix_chkpwd.8.gz
....L... c /etc/pam.d/system-auth
S.5....T c /etc/security/limits.conf

论坛徽章:
0
7 [报告]
发表于 2008-07-16 11:54 |只看该作者
id:3:initdefault:   

重启试试,用root登陆

我试过了! 还是进不去 哎。。。。

论坛徽章:
0
8 [报告]
发表于 2008-07-16 13:20 |只看该作者
....L... c /etc/pam.d/system-auth

注意这个文件,如果你装一台全新的同版本的机器,对比这两个文件有什么不同?
可以考虑把他改过来试试。

另外这几个文件也需要注意一下:
S.5....T   /sbin/pam_console_apply
S.5....T   /sbin/pam_tally
S.5....T   /sbin/pam_tally2
S.5....T   /sbin/pam_timestamp_check
S.5....T   /sbin/unix_chkpwd
S.5....T   /sbin/unix_update

论坛徽章:
0
9 [报告]
发表于 2008-07-16 13:55 |只看该作者
请您能说的详细点吗?  在这先谢谢您了!

论坛徽章:
0
10 [报告]
发表于 2008-07-16 15:25 |只看该作者
jerrywjl 已经说的很清楚了
就是让你对比你目前出问题的系统与一个没有任何问题系统,这几个文件里面的内容的是否有所不同
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP