RHEL6修改口令报错passwd: Authentication token manipulation error解决
类别:RedHat/Centos 作者:码皇 来源:hijk139的专栏 点击:
RHEL6修改口令报错passwd: Authentication token manipulation error解决修改口令报错passwd: Authentication token manipulation error原因:和之前的安全加固有关系,通过手工修改 etc passwd等两个文
RHEL6修改口令报错passwd: Authentication token manipulation error解决
修改口令报错passwd: Authentication token manipulation error
原因:和之前的安全加固有关系,通过手工修改/etc/passwd等两个文件的属性即可成功修改密码
备注:chattr 改变文件属性。
i:即Immutable,系统不允许对这个文件进行任何的修改。如果目录具有这个属性,那么任何的进程只能修改目录之下的文件,不允许建立和删除文件
解决问题的方法如下:先修改文件属性为可修改,再改回来,具体如下
[root@linux1 /]# passwd oracle
Changing password for user oracle.
New password:
Retype new password:
passwd: Authentication token manipulation error
[root@linux1 /]#
[root@linux1 /]#
[root@linux1 /]# ls -l /etc/passwd
-rw-r--r-- 1 root root 1831 May 30 14:24 /etc/passwd
[root@linux1 /]# ls -l /etc/shadow
-rw-r--r-- 1 root root 1430 May 30 15:52 /etc/shadow
[root@linux1 /]# chattr -i /etc/passwd
[root@linux1 /]# chattr -i /etc/shadow
[root@linux1 /]#
[root@linux1 /]#
[root@linux1 /]# passwd oracle
Changing password for user oracle.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@linux1 /]#
[root@linux1 /]#
[root@linux1 /]# chattr +i /etc/shadow
[root@linux1 /]# chattr +i /etc/passwd
[root@linux1 /]#
相关热词搜索:
RHEL6 修改 口令