求 Linux 大佬帮忙

2019-07-01 15:00:45 +08:00
 xypty

现在服务器是 redhat 的,重启以后一输入用户名就返回 login incorrect,没有弹出让输密码的,感觉跑路的节奏

8077 次点击
所在节点    Linux
69 条回复
wqsfree
2019-07-01 15:17:01 +08:00
你用的什么连接工具啊?换一个试一试呢,还有没有具体的信息啊,登录不正确????????
xypty
2019-07-01 15:18:22 +08:00
@wqsfree 没用 ssh 工具,直接在实体机连的,换了几个账户都不行,我感觉是经理之前配置的 pam 有问题。。。
xypty
2019-07-01 15:19:08 +08:00
@wqsfree 确实没有更多信息科。。。输入用户名,回车,提示 login incorrect,然后黑屏两秒,然后恢复原样。。
d0m2o08
2019-07-01 15:20:31 +08:00
多半是 pam 出问题了,let me google that for you
xypty
2019-07-01 15:21:34 +08:00
@d0m2o08 感谢大佬
wqsfree
2019-07-01 15:22:35 +08:00
pam 听说过没用过,难道是 pam 把账号锁定了? 要不你试一试单用户模式呢?
xypty
2019-07-01 15:23:35 +08:00
@wqsfree 进单用户模式改了半天还是不行,感觉可以收拾铺盖卷了。。。还好这系统没啥人用。。。
Kronos
2019-07-01 15:27:57 +08:00
pam.access.so 可以限制登录地点
wqsfree
2019-07-01 15:32:22 +08:00
@Kronos 他是在机房直接登录的服务器,跟 pam 限制登录地点有关系么?
xypty
2019-07-01 15:32:35 +08:00
@Kronos login 里面没有这项。。。就很难受。。
WilliamKyle
2019-07-01 15:34:25 +08:00
去 /var/log 下翻翻日志
d0m2o08
2019-07-01 15:48:32 +08:00
https://centos.org/forums/viewtopic.php?f=26&t=31544


I found the problem - this is due to an error in the oracle 11g installation docs.

It says you add this entry into /etc/pam.d/login

session required /lib/security/pam_limits.so

When I changed the line to :

session required /lib64/security/pam_limits.so

I was able to log into the console at runlevel 3.

So we can blame Oracle again !!!

Thanks for your help !
xypty
2019-07-01 15:56:33 +08:00
@d0m2o08 还是不行,大佬。。。公司总部让去中关村找个修电脑的看看秀到我了。。
d0m2o08
2019-07-01 16:02:01 +08:00
@xypty grep console /etc/securetty 这个文件里有 console 么?
xypty
2019-07-01 16:06:48 +08:00
@d0m2o08 有,第一个就是
WilliamKyle
2019-07-01 16:15:39 +08:00
磁盘空间够么? df -h 看看 df -i 看看
xypty
2019-07-01 16:16:37 +08:00
@WilliamKyle 空间绝对够。。。5t。。。
tankren
2019-07-01 16:26:47 +08:00
abcdocker
2019-07-01 16:57:25 +08:00
还是先看看安全日志吧,/var/logs/message 和 /var/log/secure
JinyAa
2019-07-01 17:07:02 +08:00
@xypty #13 笑喷

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/578960

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX