passwd:Authentication token问题处理

今天在整理服务器的时候突然有程序员给我说他的ftp的账号连接不上,于是就连上服务器找了一圈都正常啊,奇怪是不是账号密码错了于是就用程序员的账号在自己的电脑上试了下,哎呀我去

530 Login incorrect

这个错误不是就是账号密码错误嘛,于是也去上网看了下,网上说各种修改ftp的方法,看了下和我的都一样啊没错啊,不管啦就去重置密码结果在用passwd命令的时候报错了

passwd:Authentication token

怎么回事呢,后来想了下平时有的时候为了方便修改账号的信息都是直接改/etc/passwd文件的,按理来说应该不会错啊,到后来后面上网间无意看见关于linux的账户信息安全的内容,突然想起以前学linux的时候记得用户信息文件不是还有一个有写密码的密文的影子文件吗,不会不会是2个文件的用户名不一样,于是打开/etc/shadow文件一看,真的不一样,直接改了。在passwd,正常了最后再用ftp登录下OK了,这里也希望大家引以为戒,在管理用户的时候要注意几个相关联的文件

时间: 2024-08-04 03:46:23

passwd:Authentication token问题处理的相关文章

解决passwd: Authentication token manipulation error

passwd 命令修改用户密码出现passwd: Authentication token manipulation error 今天,在测试用户文件属性的时候,修改用户密码发现报此错误. 百度上搜结果: /etc/passwd 文件被锁定 /etc/passwd  /etc/shadow 文件不同步 磁盘空间不足 inode 满了 /etc/pam.d/passwd 相关动态库文件问题 结果,我都试过了,最后发现问题了,我之前不小心把 /etc/pam.d/文件夹内容全部删除过,后来进入恢复模

解决修改密码报错‘passwd:Authentication token’

 1.修改密码时报错: 错误信息:'passwd: Authentication token manipulation error' [[email protected] test]# echo '12345678' | passwd --stdin ning Changing password for user ning. passwd: Authentication token manipulation error  2.问题原因: 安全加固的时候修改了passwd.shadow 的权限导致

passwd:Authentication token manipulation error

今天一个以前的同事问我关于以上错误的解决办法,随手记一下. 这是Linux/Unix 修改密码(或单用户模式重置密码)的时候提示的错误,修改失败有很多种原因,以下是权限问题的解决办法: (1)查看 /etc/passwd  /etc/shadow 的属性 lsattr /etc/passwd /etc/shadow 如果文件带有i属性(不可修改)则会导致修改失败,如下图: (2)去掉i属性: chattr -i /etc/passwd /etc/shadow 然后执行一下 pwconv (此命令

无法修改linux密码Authentication token manipulation error 问题解决

无法修改linux密码Authentication token manipulation error 问题解决 注:本人遇到同样问题,采用的7-8步骤OK. 同事修改linux root密码时出现错误passwd: Authentication token manipulation error发生该错误原因是:1.分区没有空间导致.2./etc/passwd 和/etc/shadow不同步但是这次上面两条却行不通,通过df查看根分区还有40%剩余. 1.尝试修改密码,出现错误# passwdCh

linux修改密码出现Authentication token manipulation error的解决办法

转自 :http://blog.163.com/junwu_lb/blog/static/1916798920120103647199/ Authentication token manipulation error 发生该错误原因是: 1.分区没有空间导致. 2./etc/passwd 和/etc/shadow不同步 但是这次上面两条却行不通,通过df查看根分区还有40%剩余. 1.尝试修改密码,出现错误 # passwd Changing password for user root. Ne

Linux 修改密码“ Authentication token manipulation err”

修改服务器root密码 错误 "passwd: Authentication token manipulation error" 百度了各种解决方案 总结 1. 权限问题 lsattr /etc/passwd/ -------------e- /etc/passwd lsattr /etc/shadow/ -------------e- /etc/passwd 用lsattr命令查看存放用户和密码的文件属性,发现有i选项: (i:不得任意更动文件或目录.)所以导致所有的用户都不能修改密

authentication token manipulation error

用户服务器中修改密码,输入passwd命令后,报错authentication token manipulation error 发生该错误原因是: 1.分区没有空间导致. 2./etc/passwd 和/etc/shadow不同步 同步/etc/passwd 和/etc/shadow出错 #pwconv pwconv: cannot open /etc/shadow 隐藏属性,是不是你干的?? 执行以下命令: chattr -i /etc/passwd 我会说这样一下就好了嘛

CentOS 7 系统破密报错"Authentication token manipulation"

CentOS 7 系统破密报错"Authentication token manipulation error" centos系统的破密方式,在这里就不做介绍了. 服务器进入单用户修改密码提示:Authentication token manipulation error 理论上需要用chattr命令将/etc/passwd 和/etc/shadow的 i权限撤销,然后再修改,就可以了. chattr -i /etc/passwd chattr -i /etc/shadow但在查看时,

Authentication token manipulation error报错解决办法

Authentication token manipulation error报错解决办法 #参考http://blog.163.com/junwu_lb/blog/static/1916798920120103647199/ #参考https://www.zhukun.net/archives/5703