并以root用户身份运行chsh -s / bin / zsh,
但出现错误消息:chsh:PAM身份验证失败.
我发现这个帖子http://ubuntuforums.org/showthread.php?t=1702833
但答案并没有解决我的问题
任何帮助,将不胜感激
这是/etc/pam.d/chsh的内容
## The PAM configuration file for the Shadow `chsh' service## This will not allow a user to change their shell unless# their current one is Listed in /etc/shells. This keeps# accounts with special shells from changing them.auth required pam_shells.so# This allows root to change user shell without being# prompted for a passwordauth sufficIEnt pam_rootok.so# The standard Unix authentication modules,used with# NIS (man nsswitch) as well as normal /etc/passwd and# /etc/shadow entrIEs.@include common-auth@include common-account@include common-session
这是/ etc / shells的内容
# /etc/shells: valID login shells/bin/sh/bin/dash/bin/bash/bin/rbash/usr/bin/tmux/usr/bin/screen/bin/zsh/usr/bin/zsh
我发现我曾经运行chsh -s zsh
这将改变/ etc / passwd的第一行为
root:x:0:0:root:/root:zsh
并且chsh会在你尝试时询问密码
我只是手动编辑/ etc / passwd文件,一切正常.
愚蠢的错误,谢谢你的回复
解决方法 如果此行不存在,请检查/ etc / shells文件并将/ bin / zsh添加到文件中. 总结以上是内存溢出为你收集整理的linux – chsh:PAM身份验证失败全部内容,希望文章能够帮你解决linux – chsh:PAM身份验证失败所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)