修复passwd:Authentication token manipulation error的步骤
source link: https://www.lujun9972.win/blog/2018/07/26/%E4%BF%AE%E5%A4%8Dpasswd-authentication-token-manipulation-error%E7%9A%84%E6%AD%A5%E9%AA%A4/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
修复passwd:Authentication token manipulation error的步骤
从 https://www.tecmint.com/fix-passwd-authentication-token-manipulation-error-in-linux/ 中看到的,记录一下
- 首先尝试重启系统
检查PAM Module设置是否正确
PAM设置一般存放在
/etc/pam.d/
目录中可以尝试通过运行
sudo pam-auth-update
来修复该问题查看
/etc/shadow
文件权限/etc/shadow
文件存储了加密后的用户密码,很明显passwd
命令修改密码时需要修改该文件,因此root需要对该文件具有读写权限。sudo chmod 0600 /etc/shadow
根目录是否挂载成只读
同上一条原因,若根目录挂载成只读,则
/etc/shadow
文件很可能也就无法修改了。要修复该问题,只需要重新挂载根目录即可
sudo mount -o remount,rw /
修复文件系统错误
使用fsck之类的磁盘扫描工具修复文件系统错误
清理磁盘空间
若磁盘空间满了,而passwd修改后的
/etc/shadow
文件占用空间增加,则也可能报这个错误
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK