Merge nearly ready for 1.4.0.
This commit is contained in:
parent
f8870f6c80
commit
d92c2d2a76
11 changed files with 28 additions and 16 deletions
|
|
@ -140,7 +140,7 @@ gcc -Wall -DMAX_UID=1000 -DMIN_UID=1000 -o chkpwd chkpwd.c -lpam -lpam_misc
|
|||
|
||||
## License
|
||||
|
||||
chkpwd is licensed under the Apache License, Version 2.0.
|
||||
chkusr is licensed under the Apache License, Version 2.0.
|
||||
|
||||
See LICENSE for details.
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,12 @@
|
|||
* chkgrp-min is a program that checks if a user is a member of a group.
|
||||
*
|
||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||
* Homepage: https://git.xw3.org/hanez/chkgrp
|
||||
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||
* License: Apache-2.0 (see LICENSE)
|
||||
*/
|
||||
|
||||
#include "version.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -3,10 +3,12 @@
|
|||
* of a group.
|
||||
*
|
||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||
* Homepage: https://git.xw3.org/hanez/chkgrp
|
||||
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||
* License: Apache-2.0 (see LICENSE)
|
||||
*/
|
||||
|
||||
#include "version.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,12 @@
|
|||
* chkgrp-min-native is a program that checks if a user is a member of a group.
|
||||
*
|
||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||
* Homepage: https://git.xw3.org/hanez/chkgrp
|
||||
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||
* License: Apache-2.0 (see LICENSE)
|
||||
*/
|
||||
|
||||
#include "version.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,12 @@
|
|||
* chkgrp-native is a program that checks if a user is a member of a group.
|
||||
*
|
||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||
* Homepage: https://git.xw3.org/hanez/chkgrp
|
||||
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||
* License: Apache-2.0 (see LICENSE)
|
||||
*/
|
||||
|
||||
#include "version.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,12 @@
|
|||
* chkgrp-ng is a program that checks if a user is a member of a group.
|
||||
*
|
||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||
* Homepage: https://git.xw3.org/hanez/chkgrp
|
||||
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||
* License: Apache-2.0 (see LICENSE)
|
||||
*/
|
||||
|
||||
#include "version.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
|||
4
chkgrp.c
4
chkgrp.c
|
|
@ -2,10 +2,12 @@
|
|||
* chkgrp is a program that checks if a user is a member of a group.
|
||||
*
|
||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||
* Homepage: https://git.xw3.org/hanez/chkgrp
|
||||
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||
* License: Apache-2.0 (see LICENSE)
|
||||
*/
|
||||
|
||||
#include "version.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
|
|||
6
chkpwd.1
6
chkpwd.1
|
|
@ -1,10 +1,10 @@
|
|||
.TH checkpw 1 "June 2025" "chkpwd 1.3.1" "chkpwd man page"
|
||||
.TH checkpw 1 "June 2025" "chkpwd 1.4.0" "chkpwd man page"
|
||||
.SH NAME
|
||||
chkpwd \- checks the validity of a users password on a UNIX/PAM-based system.
|
||||
.SH SYNOPSIS
|
||||
chkpwd [OPTION]...
|
||||
.SH DESCRIPTION
|
||||
chkpwd is a program that checks the validity of a users password on a
|
||||
chkpwd is a program that checks the validity of a users password on a
|
||||
UNIX/PAM-based system.
|
||||
.SH OPTIONS
|
||||
The options which apply to the chkpwd command are:
|
||||
|
|
@ -16,7 +16,7 @@ The options which apply to the chkpwd command are:
|
|||
-h Show this help.
|
||||
|
||||
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 while program
|
||||
A missing username and/or password will then be asked for while program
|
||||
execution.
|
||||
|
||||
.SH SEE ALSO
|
||||
|
|
|
|||
1
chkpwd.c
1
chkpwd.c
|
|
@ -8,6 +8,7 @@
|
|||
*/
|
||||
|
||||
#include "chkpwd.h"
|
||||
#include "version.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
|||
10
chkpwd.h
10
chkpwd.h
|
|
@ -1,18 +1,16 @@
|
|||
/**
|
||||
* chkpwd.h is part of chkpwd, a program that checks the validity of a users
|
||||
* password on a UNIX/PAM-based system.
|
||||
* chkpwd.h is part of chkusr, a set of programs to verify information about
|
||||
* a user on UNIX based systems.
|
||||
*
|
||||
* Author: Johannes Findeisen <you@hanez.org> - 2025
|
||||
* Homepage: https://git.xw3.org/hanez/chkpwd
|
||||
* Homepage: https://git.xw3.org/hanez/chkusr
|
||||
* License: Apache-2.0 (see LICENSE)
|
||||
*/
|
||||
|
||||
#include <pwd.h>
|
||||
#include <stdbool.h>
|
||||
#include <security/pam_appl.h>
|
||||
#include <security/pam_misc.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define VERSION "1.3.1"
|
||||
|
||||
bool checkpw_authenticate(const char *username, const char *password,
|
||||
bool verbose);
|
||||
|
|
|
|||
1
version.h
Normal file
1
version.h
Normal file
|
|
@ -0,0 +1 @@
|
|||
#define VERSION "1.4.0"
|
||||
Loading…
Add table
Add a link
Reference in a new issue