You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chkpw is a program that checks the validity of a users password on a UNIX/[PAM](https://en.wikipedia.org/wiki/Pluggable_Authentication_Module)-based system.
3
+
chkpwd is a program that checks the validity of a users password on a UNIX/[PAM](https://en.wikipedia.org/wiki/Pluggable_Authentication_Module)-based system.
4
4
5
-
Currently chkpw is only tested on Linux, but it should work on a [AIX](https://en.wikipedia.org/wiki/IBM_AIX), [DragonFly BSD](https://www.dragonflybsd.org/), [FreeBSD](https://www.freebsd.org/), [HP-UX](https://en.wikipedia.org/wiki/HP-UX), [Linux](https://kernel.org/), [macOS](https://en.wikipedia.org/wiki/MacOS), [NetBSD](https://netbsd.org/) and [Solaris](https://en.wikipedia.org/wiki/Oracle_Solaris) operating system too.
5
+
Currently chkpwd is only tested on Linux, but it should work on a [AIX](https://en.wikipedia.org/wiki/IBM_AIX), [DragonFly BSD](https://www.dragonflybsd.org/), [FreeBSD](https://www.freebsd.org/), [HP-UX](https://en.wikipedia.org/wiki/HP-UX), [Linux](https://kernel.org/), [macOS](https://en.wikipedia.org/wiki/MacOS), [NetBSD](https://netbsd.org/) and [Solaris](https://en.wikipedia.org/wiki/Oracle_Solaris) operating system too.
6
6
7
7
## The idea
8
8
@@ -12,35 +12,35 @@ I needed a program to verify passwords of users on Linux/UNIX systems using PAM
12
12
13
13
You need the PAM development package installed. On Alpine it is named linux-pam-dev, on Debian based systems it is libpam0g-dev.
14
14
15
-
## Building chkpw
15
+
## Building chkpwd
16
16
17
17
```
18
-
git clone https://git.xw3.org/hanez/chkpw.git
19
-
cd chkpw
18
+
git clone https://git.xw3.org/hanez/chkpwd.git
19
+
cd chkpwd
20
20
make
21
21
```
22
22
23
-
The code only supports verifying passwords for user id 1000 by default. Look at the file chkpw.h for some compile time options!
23
+
The code only supports verifying passwords for user id 1000 by default. Look at the file chkpwd.h for some compile time options!
.TH man 1 "01 Jun 2025" "chkpwd 1.3.0" "chkpwd man page"
2
+
.SH NAME
3
+
chkpwd \- checks the validity of a users password on a UNIX/PAM-based system.
4
+
.SH SYNOPSIS
5
+
chkpwd [OPTION]...
6
+
.SH DESCRIPTION
7
+
chkpwd is a program that checks the validity of a users password on a UNIX/PAM-based system.
8
+
.SH OPTIONS
9
+
The options which apply to the chkpwd command are:
10
+
11
+
-u <username> Set username.
12
+
-p <password> Set password.
13
+
-v Enable verbose mode.
14
+
-V Print program version.
15
+
-h Show this help.
16
+
17
+
chkpwd runs in an interactive mode when no username and/or password are set. A missing username and/or password will then be asked for program execution.
0 commit comments