Linux(redhat)如何將密碼變更為先前的密碼

Linux(redhat)如何將密碼變更為先前的密碼

有沒有辦法將密碼更改為與先前的密碼相同的值?我知道這是一個安全缺陷,但我想知道。

當我嘗試這個時:

[mrbean@wwwserver ~]$ passwd
Changing password for user mrbean.
Changing password for mrbean
(current) UNIX password: 
New UNIX password: -- here i typed same password
BAD PASSWORD: is too similar to the old one.

答案1

輸入 root 密碼,或修改 PAM 設定以放寬密碼要求。不管怎樣,這都是只有 root 才能做的事。

答案2

或將其更改為其他內容,然後將其更改回相同的內容...

相關內容