← 返回命令列表

Linux command

pwqcheck 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Check password strength

echo "[password]" | pwqcheck

Check with old password

pwqcheck -1 [old_password] [new_password]

Check from stdin

pwqcheck < [password_file]

Custom config

pwqcheck config=[/path/to/pwquality.conf]

说明

pwqcheck checks password quality according to configurable rules. It's part of passwdqc for enforcing password policies. Returns OK or an error message describing the weakness.

参数

-1
Read old password, new password on stdin.
-2
Read new password only.
config=_file_
Use specified config file.
min=_n_
Minimum password length.
max=_n_
Maximum password length.

FAQ

What is the pwqcheck command used for?

pwqcheck checks password quality according to configurable rules. It's part of passwdqc for enforcing password policies. Returns OK or an error message describing the weakness.

How do I run a basic pwqcheck example?

Run `echo "[password]" | pwqcheck` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -1 do in pwqcheck?

Read old password, new password on stdin.