chkusr is a set of programs to verify information about a user on PAM/UNIX based systems.
  • C 77.7%
  • Lua 14.3%
  • Makefile 5.3%
  • Roff 2.7%
Find a file
2024-08-10 15:29:58 +02:00
.gitignore Initial commit. 2024-08-10 06:08:41 +02:00
checkpw.c Added an interactive mode (-i) to ask for a missing username or password. 2024-08-10 15:03:57 +02:00
LICENSE Initial commit 2024-08-10 06:03:34 +02:00
README.md README update. 2024-08-10 07:21:52 +02:00

checkpw

checkpw is a program that checks the validity of a users password on a Linux/PAM-based system.

Returns 0 on success, 1 otherwise.

Installation:

git clone https://git.xw3.org/hanez/checkpw.git
cd checkpw
gcc -lpam -lpam_misc -Werror -o checkpw checkpw.c

Usage:

./checkpw -u $USERNAME -p $PASSWORD
echo $?