本文转自: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 问题解决相关推荐

  1. Authentication token manipulation error问题解决

    某个CentOS 8服务器在使用passwd修改密码时出现错误提示如下: Authentication token manipulation error 提示出现后,退出passwd执行. 故障的发现 ...

  2. Ubuntu下Authentication token manipulation error或者Authentication Failure解决办法

    在Ubuntu18.04使用以下命令出现以下错误: 用passwd为新建用户或者root添加密码:Authentication token manipulation error 切换root用户出现A ...

  3. linux修改密码提示unix,linux中普通用户批改密码出现(passwd:Authentication token manipulation error)...

    linux中普通用户修改密码出现(passwd:Authentication token manipulation error) 如果在linux中,不管是root用户还是普通用户登录后,修改自己的密 ...

  4. 误删除Linux下/etc/shadow文件,linux修改密码出现Authentication token manipulation error的解决办法

    linux卸载ss的时候误把/etc/shadow删除掉了,导致ssh root登录不了.修改密码出现Authentication token manipulation error的解决办法. 解决办 ...

  5. Linux篇之解决root密码修改失败报错之Authentication token manipulation error

    一.前言 长时间未登录服务器时,通常会出现 忘记root密码等常见问题,Centos6.Centos7等. 如何解决呢? 可参考我该篇文章: https://blog.csdn.net/xu71026 ...

  6. [zz]linux修改密码出现Authentication token manipulation error的解决办法

     年底需要修改一次密码,修改的时候遇到了问题,无法修改密码,经过baidu .google,找到了可能引起的原因,成功修改密码. 以下内容来自于网络. Authentication token man ...

  7. linux 修改用户密码 报错,linux中修改用户密码报错 passwd:Authentication token manipulation error...

    出现"passwd:Authentication token manipulation error"这种问题需要考虑以下情况: 1.错误出现在输入完新密码后 问题:/etc/pas ...

  8. linux修改密码报错‘Authentication token manipulation error‘

    本次事故使用操作系统为centos7 1.报错起因: 利用chage设置root用户密码定期更换后,到期之后登录系统,输入密码之后,提示要改密码,输入新密码之后,报错 'Authentication ...

  9. 解决Linux修改密码Enter new UNIX password: passwd: Authentication token manipulation error pas

    原文地址:https://www.tecmint.com/fix-passwd-authentication-token-manipulation-error-in-linux/ How to Fix ...

  10. Ubuntu重置密码 passwd 出现 Authentication token manipulation error

    使用passwd命令重新设定密码:passwd walden,(walden是系统中已有的username),并输入两次密码,出现 Authentication token manipulation ...

最新文章

  1. CSS之布局(轮廓和圆角)
  2. Python学习之变量、对象和引用
  3. 如何将 backordered 的SO# 重新发运?
  4. oracle语句转成mysql语句_如何监控Mysql语句
  5. oracle pi 3.14,Oracle中实现圆周率计算(一)
  6. Shell(13)——find
  7. 【解题报告】2020蓝桥杯B组模拟 计蒜客 结果填空:苹果
  8. STL泛型编程之map映照容器
  9. python中easygui有几种_Python 模块EasyGui详细介绍
  10. Inferring Generative Model Structure with Static Analysis-2017【论文理解】
  11. java.lang.NoClassDefFoundError: org/springframework/dao/support/DaoSupport ...
  12. 社交网络与社会计算课程内容梳理总结
  13. <C++>初识多态,剖析virtual关键字
  14. ICG-PEG-OH 结构式,吲哚菁绿-聚乙二醇-羟基的相关说明
  15. SQL --理解SQL SERVER中的逻辑读,预读和物理读
  16. STM32实现低功耗待机(电流低至5.7uA)
  17. 教你如何提取图片中的文字?
  18. 一个目标100亿的互联网金融创业项目完整思路(毫无保留,赤裸裸全部是干货分享)
  19. Zcash中的description
  20. MangoDB插入、删除和查询文档

热门文章

  1. 3DEXPERIENCE ENOVIA
  2. 用 dfuse Lifecycle 保证你的交易被推送上链
  3. 酷狗如何打造集听、看、玩、唱于一体的泛娱乐音乐平台?
  4. python怎么爬虎牙_【python】虎牙直播爬虫项目
  5. flea-jersey使用之文件上传接入
  6. 第一代计算机外星人,Alienware外星人品牌发展史
  7. 接口测试第三课(HTTP协议简介) -- 转载
  8. python的for语句有几种写法_python的for循环写法
  9. 平板做笔记本电脑的副屏教程
  10. 电子签名具备法律效力吗?这些知识点你需要了解