Solution: The problem that the Alibaba Cloud server failed to modify the password after being implanted in the mining program (error: passwd: Authentication token manipulation error)

As shown in the figure below, the
Insert picture description here
reason for the error will be reported when changing the password :
usually the /etc/passwd file or the /etc/shadow file is locked if the password cannot be changed

Solution:
Check whether the /etc/passwd file and the /etc/shadow file are locked, see the following figure:
①Check the /etc/passwd file
Insert picture description here
/etc/passwd file is normal

②Check the /etc/shadow file.
Insert picture description here
You can see that the /etc/shadow file is indeed locked. A permission means "files can only be appended after locking".
If it is i, it means "locked files (cannot be modified, deleted, etc.)"

③Unlock the /etc/shadow file
Insert picture description here
④Try to modify the password again. The
Insert picture description here
modification is successful! ! !

Guess you like

Origin blog.csdn.net/weixin_44901564/article/details/109363002