linux一直用户身份验证失败,linux – chsh:PAM身份验证失败
我想更改默認的
shell env
并以root用戶身份運行chsh -s / bin / zsh,
但出現錯誤消息:chsh:PAM身份驗證失敗.
但答案并沒有解決我的問題
任何幫助,將不勝感激
這是/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 password
auth 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文件,一切正常.
愚蠢的錯誤,謝謝你的回復
總結
以上是生活随笔為你收集整理的linux一直用户身份验证失败,linux – chsh:PAM身份验证失败的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 重装系统计算机无法启动,手把手教你电脑无
- 下一篇: win8.1适合哪个版本的linux,紧