无法修改linux密码Authentication token manipulation error 问题解决
来源:互联网 发布:雅漾活泉保湿面膜 知乎 编辑:程序博客网 时间:2024/05/20 15:56
本文转自:http://zl382378867.blog.163.com/blog/static/40794421201191235744855
无法修改linux密码Authentication token manipulation error 问题解决
注:本人遇到同样问题,采用的7-8步骤OK。
同事修改linux root密码时出现错误passwd: Authentication token manipulation error
发生该错误原因是:
1、分区没有空间导致。
2、/etc/passwd 和/etc/shadow不同步
但是这次上面两条却行不通,通过df查看根分区还有40%剩余。
1、尝试修改密码,出现错误
# passwd
Changing password for user root.
New UNIX password:
BAD PASSWORD: it is WAY too short
Retype new UNIX password:
passwd: Authentication token manipulation error
2、同步/etc/passwd 和/etc/shadow出错 # (8) - convert to and from shadow passwords and groups
#pwconv
pwconv: can't lock passwd file
3、看权限没有异常,也没有进程锁定该文件
# ll /etc/passwd
-rwxr--r-- 1 root root 2752 Dec 31 17:29 /etc/passwd
# fuser -u /etc/passwd
# lsof |grep passwd
4、cp lock文件出错,提示空间不足
# cp /tmp/.pwd.lock /etc/
cp: cannot create regular file `/etc/.pwd.lock': No space left on device
5、上面的错误惊醒了我,查看确实是inode满了,删除无用的文件
#df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda5 2562240 2562240 0 100% /
/dev/sda1 50200 47 50153 1% /boot
/dev/sda2 51300000 12 51299988 1% /data/cache1
/dev/sdb1 51300000 7080311 44219689 14% /data/cache2
/dev/sdb2 9863168 11 9863157 1% /data/proclog
none 215907 1 215906 1% /dev/shm
/dev/sda3 3842720 305795 3536925 8% /usr
/dev/sda7 3162112 7893 3154219 1% /var
6、再次修改密码仍然出错,于是尝试修改/etc/passwd也出现错误
# chmod 777 /etc/passwd
chmod: changing permissions of `/etc/passwd': Operation not permitted
7、执行chattr
#chattr -i /etc/passwd
# lsattr -v /etc/passwd
2095582053 ------------- /etc/passwd
# chattr -i /etc/shadow
8、同步文件
pwconv
9、成功修改密码
passwd
Changing password for user root.
New UNIX password:
BAD PASSWORD: it is WAY too short
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
#
本人采用7-8就成功了
- 无法修改linux密码Authentication token manipulation error 问题解决
- 无法修改linux密码,提示Authentication token manipulation error解决方法
- 无法修改linux/ubuntu密码(Authentication token manipulation error )问题解决过程
- root无法修改密码,提示:Authentication token manipulation error
- linux修改密码出现Authentication token manipulation error的解决办法
- linux中修改密码(passwd: Authentication token manipulation error)
- root 密码修改 passwd: Authentication token manipulation error
- 修改root密码passwd: Authentication token manipulation error
- linux中普通用户修改密码出现(passwd:Authentication token manipulation error)
- linux中普通用户修改密码出现(passwd:Authentication token manipulation error)
- Authentication token manipulation error
- passwd: Authentication token manipulation error----linux
- passwd: Authentication token manipulation error----linux
- ubuntu忘记密码 修改密码报错 Authentication token manipulation error解决
- CENTOS单用户下修改密码报“passwd: Authentication Token Manipulation Error”
- ubuntu找回root密码,报错authentication token manipulation error
- passwd:Authentication token manipulation error
- passwd Authentication token manipulation error
- MapReduce中的两表join几种方案简介
- <Test-Driven Development with Python>学习笔记 第一部分 测试驱动开发基础
- 【设计模式】建造者模式
- 离散--第三章
- Scala类详解
- 无法修改linux密码Authentication token manipulation error 问题解决
- perl-标准输入与输出
- linux 下音频的录制与播放测试例子
- 计算机组成原理
- 秒杀多线程第九篇 经典线程同步总结 关键段 事件 互斥量 信号量
- C语言基础总结-++ -- += -=
- JAVA练级之路(一)--- JAVA环境配置
- 数据结构基础--线性表操作
- Android中的Loaders机制