PWSCORE(1)
π PWSCORE β ok bestie, let's rate ur password π
Hiii so this is a page from the General Commands Manual (section 1, the user commands girlies) and it's about pwscore, which is a whole simple configurable tool for checking quality of a password. Yes, THAT kind of tool. The vibe check your password never asked for but lowkey needs. β¨
πΈ NAME πΈ
pwscore β a simple configurable tool for checking quality of a password. It's giving password bouncer. It's giving "bestie, that's not it" energy. π«Ά
π SYNOPSIS π
pwscore [user]
That's it. That's the whole thing. One optional lil guy. Slay. π
β¨ DESCRIPTION β¨
Okay so, pwscore is a simple tool for checking quality of a password. And here's the thing β the password is read from stdin. So you're piping it in, not typing it as an argument, bestie. Don't be weird about it. π
The tool uses the libpwquality library to perform configurable checks for minimum length, dictionary checking against cracklib dictionaries, and other checks. So it's not just vibes β it's real math and real dictionaries. Iconic, honestly. π
Then it does one of two things:
- It either reports an error if the password fails any of the checks, or
- it prints out the password quality score as an integer value between
0and100.
Numbers. Between zero and one hundred. A whole glow-up scale for your little string of characters. π
The password quality score is relative to the minlen setting in the configuration file. But in general values below 50 can be treated as moderate quality and above it fairly strong quality. So like, <50 = "hmm okay werk a little harder", >50 = "okay periodt, she's serving". π
And important β any password that passes the quality checks (especially the mandatory cracklib check) should withstand dictionary attacks, and scores above 50 with the default minlen setting even fast brute force attacks. Not me telling you that a good score means actual real-world security. No cap. π₯
π OPTIONS π
The first and only optional argument is the user name that is used to check the similarity of the password to the username.
userβ the optional username.pwscoreuses it to check how similar your password is to the username. So if you're out here setting your password to your own username... bestie. It's gonna notice. It's gonna judge. π
π¦ FILES π¦
/etc/security/pwquality.confβ The configuration file for thelibpwqualitylibrary. This is where all the settings live, including thatminlenwe keep talking about. Go read it, it's important. β¨
π RETURN CODES π
pwscore returns 0 on success, non zero on error. Classic. Zero means "she passed the vibe check", non-zero means "nope, try again babe". π
β SEE ALSO β
Go read them, iykyk. Sibling pages. The whole family. πΈ
π AUTHORS π
Tomas Mraz <tmraz@redhat.com> β the icon, the legend, the moment. π«Ά
Just a lil reminder: this whole page comes to you courtesy of Red Hat, Inc., dated 2017-02-10. Shoutout to them for the manual, and shoutout to you for reading the whole thing. That's main character energy fr fr. πβ¨π
π¦ where this page comes from
- alpine 3.24: libpwquality-doc 1.4.5-r6 Β· BSD-3-Clause
- centos-stream 10: libpwquality 1.4.5-13.el10 Β· BSD-3-Clause OR GPL-2.0-or-later
- centos-stream 9: libpwquality 1.4.4-8.el9 Β· BSD or GPLv2+
- centos-stream 9: libpwquality 1.4.4-8.el9 Β· BSD or GPLv2+
- debian bookworm: libpwquality-tools 1.4.5-1+b1 Β· libpwquality OR GPL-2.0-or-later
- debian trixie: libpwquality-tools 1.4.5-5 Β· libpwquality OR GPL-2.0-or-later
- fedora 43: libpwquality 1.4.5-14.fc43 Β· BSD-3-Clause OR GPL-2.0-or-later
- fedora 43: libpwquality 1.4.5-14.fc43 Β· BSD-3-Clause OR GPL-2.0-or-later
- fedora 44: libpwquality 1.4.5-15.fc44 Β· BSD-3-Clause OR GPL-2.0-or-later
- fedora 44: libpwquality 1.4.5-15.fc44 Β· BSD-3-Clause OR GPL-2.0-or-later
- opensuse-leap 16.0: libpwquality-tools 1.4.5-160000.3.2 Β· BSD-3-Clause OR GPL-2.0-or-later
- opensuse-leap 16.0: libpwquality-tools 1.4.5-160000.3.2 Β· BSD-3-Clause OR GPL-2.0-or-later
- opensuse-leap 16.0: libpwquality-tools 1.4.5-160000.3.2 Β· BSD-3-Clause OR GPL-2.0-or-later
- opensuse-leap 16.0: libpwquality-tools 1.4.5-160000.3.2 Β· BSD-3-Clause OR GPL-2.0-or-later
- ubuntu jammy: libpwquality-tools 1.4.4-1build2 Β· libpwquality OR GPL-2.0-or-later
- ubuntu noble: libpwquality-tools 1.4.5-3build1 Β· libpwquality OR GPL-2.0-or-later
- ubuntu questing: libpwquality-tools 1.4.5-5
- ubuntu resolute: libpwquality-tools 1.4.5-5build1 Β· libpwquality OR GPL-2.0-or-later
- ubuntu stonking: libpwquality-tools 1.4.5-5build1 Β· libpwquality OR GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms