linux修改服务器密码报错authentication token manipulation error问题解决

问题:root登录系统后,passwd修改密码时出现”authentication token manipulation error”
首先检查磁盘,df -lh 查看磁盘没满,再检查df -ih 查看inode没满
在检查权限chmod 777 /etc/passwd报错没有权限
lsattr /etc/passwd 查看权限正确–a–e—-
网上看了下说的可能是分区只读了 mount -o rw,remount / 重新挂载还是不行

最终核实到是/etc/shadow 权限问题
lsattr /etc/shadow —-i—–
chattr -i /etc/shadow

重新设置权限后测试可以修改了,问题解决

About sun 83 Articles
85后青年,自诩为伪文艺青年

Be the first to comment

Leave a Reply

Your email address will not be published.


*