2024-08-10 06:03:34 +02:00
|
|
|
# checkpw
|
|
|
|
|
|
2024-08-10 07:20:56 +02:00
|
|
|
checkpw is a program that checks the validity of a users password on a Linux/PAM-based system.
|
2024-08-10 06:08:41 +02:00
|
|
|
|
2024-08-10 07:21:52 +02:00
|
|
|
Returns 0 on success, 1 otherwise.
|
|
|
|
|
|
2024-08-10 06:08:41 +02:00
|
|
|
# Installation:
|
|
|
|
|
|
2024-08-10 06:31:43 +02:00
|
|
|
```
|
2024-08-10 06:30:13 +02:00
|
|
|
git clone https://git.xw3.org/hanez/checkpw.git
|
|
|
|
|
cd checkpw
|
2024-08-10 06:38:04 +02:00
|
|
|
gcc -lpam -lpam_misc -Werror -o checkpw checkpw.c
|
2024-08-10 06:31:43 +02:00
|
|
|
```
|
2024-08-10 06:08:41 +02:00
|
|
|
|
|
|
|
|
# Usage:
|
|
|
|
|
|
2024-08-10 06:31:43 +02:00
|
|
|
```
|
2024-08-10 06:30:13 +02:00
|
|
|
./checkpw -u $USERNAME -p $PASSWORD
|
|
|
|
|
echo $?
|
2024-08-10 06:31:43 +02:00
|
|
|
```
|
2024-08-10 06:08:41 +02:00
|
|
|
|