linux 不讓改密碼, 提示:passwd: Authentication token manipulation error
常見問題
(1)
問題:/etc/passwd, /etc/shadow檔案被鎖住,不允許修改。
lsattr /etc/passwd
----i-------- /etc/passwd
lsattr /etc/shadow
----i-------- /etc/shadow
[root@shanxi Desktop]# passwd tom
Changing password for user tom.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: Authentication token manipulation error
解決方法:
[root@shanxi Desktop]# chattr -i /etc/shadow
[root@shanxi Desktop]# chattr -i /etc/passwd
[root@shanxi Desktop]# lsattr /etc/passwd
------------- /etc/passwd
[root@shanxi Desktop]# lsattr /etc/shadow
------------- /etc/shadow
(2)/etc/pam.d/認證的地方出問題了
[root@yitai02 ~]# passwd tom
Changing password for user tom .
passwd: Authentication token manipulation error
You have new mail in /var/spool/mail/root
看了一下是有一行被人註解掉了:
[root@yitai02 ~]# cat /etc/pam.d/passwd
#%PAM-1.0
auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth
#password required pam_stack.so service=system-auth
解決方法:
反註解
[root@yitai02 ~]# cat /etc/pam.d/passwd
#%PAM-1.0
auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
另外也可以能是/etc/pam.d/system-auth 檔案內容被人清空了。這種情況也不行。
可以都補上,如下:
[root@yitai02 ~]# cat /etc/pam.d/system-auth
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required /lib/security/$ISA/pam_env.so
auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok
auth required /lib/security/$ISA/pam_deny.so
account required /lib/security/$ISA/pam_unix.so
account sufficient /lib/security/$ISA/pam_succeed_if.so uid < 100 quiet
account required /lib/security/$ISA/pam_permit.so
password requisite /lib/security/$ISA/pam_cracklib.so retry=3
password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow
password required /lib/security/$ISA/pam_deny.so
session required /lib/security/$ISA/pam_limits.so
session required /lib/security/$ISA/pam_unix.so
(1)
問題:/etc/passwd, /etc/shadow檔案被鎖住,不允許修改。
lsattr /etc/passwd
----i-------- /etc/passwd
lsattr /etc/shadow
----i-------- /etc/shadow
[root@shanxi Desktop]# passwd tom
Changing password for user tom.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: Authentication token manipulation error
解決方法:
[root@shanxi Desktop]# chattr -i /etc/shadow
[root@shanxi Desktop]# chattr -i /etc/passwd
[root@shanxi Desktop]# lsattr /etc/passwd
------------- /etc/passwd
[root@shanxi Desktop]# lsattr /etc/shadow
------------- /etc/shadow
(2)/etc/pam.d/認證的地方出問題了
[root@yitai02 ~]# passwd tom
Changing password for user tom .
passwd: Authentication token manipulation error
You have new mail in /var/spool/mail/root
看了一下是有一行被人註解掉了:
[root@yitai02 ~]# cat /etc/pam.d/passwd
#%PAM-1.0
auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth
#password required pam_stack.so service=system-auth
解決方法:
反註解
[root@yitai02 ~]# cat /etc/pam.d/passwd
#%PAM-1.0
auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
另外也可以能是/etc/pam.d/system-auth 檔案內容被人清空了。這種情況也不行。
可以都補上,如下:
[root@yitai02 ~]# cat /etc/pam.d/system-auth
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required /lib/security/$ISA/pam_env.so
auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok
auth required /lib/security/$ISA/pam_deny.so
account required /lib/security/$ISA/pam_unix.so
account sufficient /lib/security/$ISA/pam_succeed_if.so uid < 100 quiet
account required /lib/security/$ISA/pam_permit.so
password requisite /lib/security/$ISA/pam_cracklib.so retry=3
password sufficient /lib/security/$ISA/pam_unix.so nullok use_authtok md5 shadow
password required /lib/security/$ISA/pam_deny.so
session required /lib/security/$ISA/pam_limits.so
session required /lib/security/$ISA/pam_unix.so
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27042095/viewspace-759711/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 更改root密碼:Authentication token manipulation error 分享密碼Error
- linux密碼檔案/etc/passwdLinux密碼
- Linux精講——修改密碼passwdLinux密碼
- API Token AuthenticationAPI
- Linux基礎命令---修改使用者密碼passwdLinux密碼
- linux下passwd命令設定修改使用者密碼Linux密碼
- Linux 每月自動改密碼Linux密碼
- 不讓改密碼,就寄炸彈,一男子最終被判6年密碼
- 【Azure Developer】使用 Microsoft Authentication Libraries (MSAL) 如何來獲取Token呢 (通過使用者名稱和密碼方式獲取Access Token)DeveloperROS密碼
- passwd修改使用者密碼注意什麼?linux運維基礎命令知識密碼Linux運維
- SourceTree 提示 fatal: Authentication failed for..AI
- 路由器改密碼路由器密碼
- linux環境下ssh不輸入密碼Linux密碼
- JavaScript密碼強度提示JavaScript密碼
- 密碼提示很煩人!密碼
- RPC:authentication error:why = server rejected credentialRPCErrorServer
- 藍芽怎麼設定密碼不讓人連線 藍芽設定密碼的方法藍芽密碼
- syntax error near unexpected token `Error
- WCF Security:Silverlight authentication for WCF service based on security token
- JavaScript 密碼強度提示效果JavaScript密碼
- shell 指令碼報錯^M: syntax error near unexpected token指令碼Error
- 密碼框提示文字程式碼例項密碼
- Image Manipulation
- win10賬戶改密碼的方法_windows10賬戶密碼怎麼改Win10密碼Windows
- 一問帶你區分清楚Authentication,Authorization以及Cookie、Session、TokenCookieSession
- MongoDB server returned error on SASL authentication step: BSON field 'saslCoMongoDBServerError
- 登入提示框與密碼提示框,生成驗證碼密碼
- win10總提示修改密碼怎麼回事|win10取消提示修改密碼的方法Win10密碼
- 更改密碼時出現ERROR 1054密碼Error
- 詳解Linux中/etc/passwd檔案Linux
- 詳細解析Linux /etc/passwd檔案Linux
- 10 個 Linux 中的 passwd 命令示例Linux
- centos配置ssh免密碼登入後,仍提示輸入密碼CentOS密碼
- 如何在 Linux 中不輸入密碼執行 sudo 命令Linux密碼
- oracle 9i改system的密碼Oracle密碼
- 織夢資料庫裡改密碼資料庫密碼
- 密碼輸入強度提示例項程式碼密碼
- js實現的密碼強度提示程式碼JS密碼