pwauth/pwauth-config.patch

53 lines
1.5 KiB
Diff
Raw Normal View History

diff -ruN pwauth-2.3.10.old/config.h pwauth-2.3.10/config.h
--- pwauth-2.3.10.old/config.h 2013-06-04 20:12:37.000000000 -0700
+++ pwauth-2.3.10/config.h 2013-06-04 20:25:06.000000000 -0700
@@ -213,8 +213,8 @@
* uid numbers.
*/
-#define UNIX_LASTLOG /**/
-#define HAVE_LASTLOG_H /**/
+/* #define UNIX_LASTLOG /**/
+/* #define HAVE_LASTLOG_H /**/
/* If NOLOGIN_FILE is defined to the full path name of a file, then the
@@ -227,8 +227,8 @@
* right with PAM.
*/
-/* #define NOLOGIN_FILE "/etc/nologin" /**/
-/* #define MIN_NOLOGIN_UID 1 /**/
+#define NOLOGIN_FILE "/etc/nologin" /**/
+#define MIN_NOLOGIN_UID 1 /**/
/* Defining CHECK_LOGIN_EXPIRATION and CHECK_PASSWORD_EXPIRATION causes
@@ -278,7 +278,7 @@
* to change the uid list.
*/
-/* #define SERVER_UIDS 30 /* user "wwwrun" on the author's system */
+#define SERVER_UIDS 100,101,102 /* user "www" and "admin" (100 allows for upgraded systems) */
/* If MIN_UNIX_UID is defined to an integer, logins with uid numbers less than
@@ -290,7 +290,7 @@
* given value will be accepted).
*/
-#define MIN_UNIX_UID 500 /**/
+#define MIN_UNIX_UID 100 /**/
/* If IGNORE_CASE is defined, the login given is checked in two different
@@ -319,7 +319,7 @@
* SLEEP_LOCK. SLEEP_TIME defaults to 2 seconds if not defined.
*/
-#define SLEEP_LOCK "/var/run/pwauth.lock"
+/* #define SLEEP_LOCK "/var/run/pwauth.lock" /**/
/* If ENV_METHOD is defined, pwauth expects mod_auth_external to be configured