chsh: PAM: Authentication failure
来源:互联网 发布:武汉启瑞药业 知乎 编辑:程序博客网 时间:2024/04/29 18:34
为了在ubuntu下安装quartus 7.2,使用chsh命令将默认shell修改为 csh,没有成功,返回
no a valid shell
或csh does not exist
,表明csh
未正确安装。当退出root账户后,发现无法登录root,出现如下报错:
Cannot execute cd /bin/bash: No such file or directory
对我这种root敢死队队员来说,无法登陆root账户简直是 “mdzz”,马上试了试sudo,顿时放松了,sudo还能用,电脑未死。
马上就怀疑到了刚打的
chsh
命令上,毕竟错误提示找不着bash
,应该是chsh
修改bash
为csh
的时候没成功,又没把它做的修改还原,干活只干一半,真是“mdzz”。那就很自然的就想到再用一遍
chsh
换回bash
吧。可是真要如此简单我还用写篇博文?那不是“mdzz”吗。使用
sudo chsh
修改root的默认shell,错误是这样的chsh: PAM: Authentication failure
这就尴尬了,PAM是什么?还授权失败?简单粗暴,google it。
不出所料,出问题的很多,解决方法都不管用,比如什么修改
/etc/shells
,看着挺有道理,其实并没有什么用。可是,在某个角落,我发现了/etc/passwd
,这一看就是那种看上去不起眼,其实最有用的东西打开我的
/etc/passwd
一看,问题就在第一行,最后一个值就是cd /bin/bash
。这不胡来吗,这就是指定默认登录bash的地方,有个cd
什么意思?chsh
你怎么给我改的?然后,把
cd
和它后面的空格删了,也就是最后一个值为/bin/bash
,问题解决
- chsh: PAM: Authentication failure
- authentication failure
- deepin zsh 出现" chsh: PAM: 鉴定故障 " 解决方法
- Pluggable Authentication Modules(PAM)
- SU - Authentication failure
- su: Authentication failure
- gentoo su: Authentication failure
- su: Authentication failure 错误
- Warning: Authentication failure. Retrying...
- su: Authentication failure
- su: Authentication failure
- su: Authentication failure
- authentication failure的解决办法
- ubuntu su: Authentication failure
- chsh
- SASL LOGIN authentication failed: authentication failure
- Linux的鉴别(Authentication)机制--PAM
- RSA SecurID Authentication linux sshd PAM deploy
- Hbase和传统数据库的区别
- Bzoj 1566: [NOI2009]管道取珠(DP)
- 蓝桥杯
- 119. Pascal's Triangle II
- 算法总结系列之五: 基数排序(Radix Sort)
- chsh: PAM: Authentication failure
- PTA 5-10 说反话-加强版 【】
- PAT (Advanced Level) Practise 1006 Sign In and Sign Out
- Java SpringMVC文件上传工具类
- lenovo g500 更换ssd
- [欧拉回路 KM] AOJ 2724 Laser Cutter
- acm练习-day1_2
- Android如何在app中通过一个按钮直接跳转到的系统的权限设置页面
- Error: java.lang.RuntimeException: Some file crunching failed, see logs for details