日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux一直用户身份验证失败,linux – chsh:PAM身份验证失败

發(fā)布時(shí)間:2025/3/12 linux 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux一直用户身份验证失败,linux – chsh:PAM身份验证失败 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

我想更改默認(rèn)的

shell env

并以root用戶身份運(yùn)行chsh -s / bin / zsh,

但出現(xiàn)錯(cuò)誤消息:chsh:PAM身份驗(yàn)證失敗.

但答案并沒有解決我的問題

任何幫助,將不勝感激

這是/etc/pam.d/chsh的內(nèi)容

#

# 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的內(nèi)容

# /etc/shells: valid login shells

/bin/sh

/bin/dash

/bin/bash

/bin/rbash

/usr/bin/tmux

/usr/bin/screen

/bin/zsh

/usr/bin/zsh

我發(fā)現(xiàn)我曾經(jīng)運(yùn)行chsh -s zsh

這將改變/ etc / passwd的第一行為

root:x:0:0:root:/root:zsh

并且chsh會(huì)在你嘗試時(shí)詢問密碼

我只是手動(dòng)編輯/ etc / passwd文件,一切正常.

愚蠢的錯(cuò)誤,謝謝你的回復(fù)

總結(jié)

以上是生活随笔為你收集整理的linux一直用户身份验证失败,linux – chsh:PAM身份验证失败的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。