最近,我在我的VMware光子操作系统主机上更改了密码。现在,我想再次将其重置为旧的,但是passwd不允许我这样做,并显示以下消息:
Password has been already used. Choose another.
passwd: Have exhausted maximum number of retries for service
passwd: password unchanged我能推翻这种行为吗?
发布于 2023-01-30 12:18:07
请注意,重用旧密码可能会强制使用安全风险。
密码历史记录存储在/etc/security/opasswd中。您可以直接删除有关特定用户的行,也可以一次性删除所有用户的历史记录:
cat /dev/null > /etc/security/opasswd发布于 2023-01-30 15:31:17
除了删除或清除/etc/security/opasswd文件之外,还要查看/etc/pam.d/system-auth和/etc/pam.d/passowrd-auth,如果其中包含类似的内容
password requisite pam_pwhistory.so use_authtok remember=24只需暂时删除remember=#的所有实例,以允许重用现有密码。然后,一旦设置好,您就可以恢复remember=#
https://unix.stackexchange.com/questions/733694
复制相似问题