Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to check the complexity / intensity and score of passwords in Linux

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to check the complexity / strength and rating of passwords in Linux", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to check the complexity / intensity and rating of passwords in Linux".

How to install the cracklib module in Linux?

The cracklib module is available in most distribution repositories, so use the distribution's official package manager to install it.

For Fedora systems, use the DNF command to install cracklib.

$sudo dnf install cracklib

For Debian/Ubuntu systems, use the APT-GET command or the APT command to install libcrack2.

$sudo apt install libcrack2

For Arch Linux-based systems, use the Pacman command to install cracklib.

$sudo pacman-S cracklib

For RHEL/CentOS systems, use the YUM command to install cracklib.

$sudo yum install cracklib

For openSUSE Leap systems, use the Zypper command to install cracklib.

How does sudo zypper install cracklib use the cracklib module in Linux to check password complexity?

I have added some examples in this article to help you better understand this module.

If you provide any words such as people or place names or common words, you will see a message "it exists in the word in the dictionary".

$echo "password" | cracklib-checkpassword: it is based ona dictionary word

The default password length in Linux is 7 characters. If you provide a password of less than 7 characters, you will see a message "it is too short".

$echo "123" | cracklib-check123: it is WAY too short

When you provide a good password like ours, you will see "OK".

$echo "metered 2wks installed fgty6723" | cracklib house checkMetrology fgty6723: how does OK install pwscore in Linux?

The pwscore package is available in most distribution repositories, so use the distribution's official package manager to install it.

For Fedora systems, use the DNF command to install libpwquality.

$sudo dnf install libpwquality

For Debian/Ubuntu systems, use the APT-GET command or the APT command to install libpwquality.

$sudo apt install libpwquality

For Arch Linux-based systems, use the Pacman command to install libpwquality.

$sudo pacman-S libpwquality

For RHEL/CentOS systems, use the YUM command to install libpwquality.

$sudo yum install libpwquality

For openSUSE Leap systems, use the Zypper command to install libpwquality.

$sudo zypper install libpwquality

If you provide any words such as people or place names or common words, you will see a message "it exists in the word in the dictionary".

$echo "password" | pwscorePassword quality check failed: The password fails the dictionary check-it is based ona dictionary word

The default password length in Linux is 7 characters. If you provide a password of less than 7 characters, you will see a message "the password is less than 8 characters".

$echo "123" | pwscorePassword quality check failed: The password is shorter than 8 characters

When you provide a good password as we do, you will see the "password score".

$echo "measuring password fgty6723" | pwscore90 above is all the content of the article "how to check the complexity / strength and score of passwords in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report