linux如何知道新密碼與舊密碼相似?

如果您曾經收到一條訊息說您的新密碼與舊密碼太相似,那麼您可能會好奇您的Linux系統是如何“知道”它們太相似的。今天的超級使用者問答帖子為好奇的讀者提供了一個“魔法帷幕”背後的一瞥。...

linux如何知道新密碼與舊密碼相似?

如果您曾經收到一條訊息說您的新密碼與舊密碼太相似,那麼您可能會好奇您的Linux系統是如何“知道”它們太相似的。今天的超級使用者問答帖子為好奇的讀者提供了一個“魔法帷幕”背後的一瞥。

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

螢幕截圖由marc falardeau(Flickr)提供。

問題

超級使用者讀者LeNoob想知道Linux系統如何“知道”密碼彼此太相似:

I tried to change a user password on various Linux machines a few times and when the new password was much like the old one, the operating system said that they were too similar.

I have always wondered, how does the operating system know this? I thought passwords were saved as a hash. Does this mean that when the system is able to compare the new password for similarity to the old one that it is actually saved as plain text?

Linux系統如何“知道”密碼彼此太相似?

答案

超級使用者貢獻者slhck為我們提供了答案:

Since you need to supply both the old and new passwords when using passwd, they can be easily compared in plain text.

Your password is indeed hashed when it is finally stored, but until that happens, the tool where you are entering your password can just access it directly.

This is a feature of the PAM system which is used in the background of the passwd tool. PAM is used by modern Linux distributi***. More specifically, pam_cracklib is a module for PAM that allows it to reject passwords based on similarities and weaknesses.

It is not just passwords which are too similar that can be c***idered insecure. The source code has various examples of what can be checked, such as whether a password is a palindrome or what the edit distance is between two words. The idea is to make passwords more resistant against dictionary attacks.

See the pam_cracklib manpage for more information.

請務必透過下面連結的主題執行緒,在SuperUser上通讀其餘的生動討論。


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-11 02:06
  • 閱讀 ( 28 )
  • 分類:網際網路

你可能感興趣的文章

頻繁更改密碼對您的安全有好處嗎?

... 我相信您不需要我們來告訴您如何建立強密碼,但這些資訊始終值得重複: ...

  • 發佈於 2021-03-11 15:13
  • 閲讀 ( 49 )

重置忘記的windows管理員密碼的3種方法

...不要擔心。有幾種方法可以用來恢復它。我們將向您展示如何在Windows中重置管理員密碼。 ...

  • 發佈於 2021-03-15 03:48
  • 閲讀 ( 57 )

7個聰明的密碼管理超級能力,你必須開始使用

... 你知道嗎,如果你的密碼管理器儲存的是糟糕的密碼,那麼它對你沒有多大幫助?僅僅因為你的“browndog1”密碼在LastPass中並不能使它變得更強大!一旦你使用了一個管理器...

  • 發佈於 2021-03-15 12:55
  • 閲讀 ( 49 )

別讓這8個常見的macos問題困擾你了

...一個重複出現的問題,最好重新構建郵箱。一定要先研究如何保持資訊的安全。 ...

  • 發佈於 2021-03-15 16:23
  • 閲讀 ( 43 )

在windows xp中重置管理員密碼的5個提示

...已經詳細介紹了將Linux發行版安裝到CD或USB的過程,以及如何重置密碼。 ...

  • 發佈於 2021-03-22 08:54
  • 閲讀 ( 56 )

如何對onenote 2016中的筆記進行密碼保護

...間記錄、儲存和同步筆記。如果你有安全意識,那麼看看如何密碼保護你的筆記了。畢竟,Microsoft OneNote註定是您所有資訊的筒倉。 ...

  • 發佈於 2021-03-24 05:27
  • 閲讀 ( 59 )

mac上的5個常見鑰匙鏈問題及其解決方法

... 現在您知道如何解決最常見的鑰匙鏈問題,如果您遇到任何問題。我們針對其他常見macOS問題的解決方案也將幫助您保持Mac無故障。 ...

  • 發佈於 2021-03-24 08:03
  • 閲讀 ( 55 )

如何更改你的facebook密碼

... 如何更改你的facebook密碼 ...

  • 發佈於 2021-03-25 19:18
  • 閲讀 ( 35 )

如何更改unix密碼

...安全性時,基於Unix的作業系統提供了強大的功能。但是如何利用這些高階功能來保護您的系統呢? ...

  • 發佈於 2021-03-26 19:43
  • 閲讀 ( 36 )

鎖在外面?如何重置playstation密碼

... 讓我們來探索如何執行PlayStation密碼重置,以及進一步增強其安全性的一些簡便方法。 ...

  • 發佈於 2021-03-28 01:08
  • 閲讀 ( 48 )
老夫擎天柱
老夫擎天柱

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦