- 论坛徽章:
- 0
|
建立一个jack用户,在root下,echo "123456" | passwd --stdin jack修改成功。
但进入jack用户中,
[root@rhel ~]# su - jack
[jack@rhel ~]$ passwd
Changing password for user jack.
Changing password for jack
(current) UNIX password:
passwd: Authentication token manipulation error
[jack@rhel ~]$
修改失败。
网上搜索了很多方法,
[root@rhel ~]# lsattr /etc/passwd
------------- /etc/passwd
[root@rhel ~]# lsattr /etc/shadow
------------- /etc/shadow
[root@rhel ~]# chattr -i /etc/passwd
[root@rhel ~]# chattr -i /etc/shadow
[root@rhel ~]# lsattr /etc/shadow /etc/shadow
------------- /etc/shadow
------------- /etc/shadow
[root@rhel ~]# pwconv
均没有成功 |
|