openssh-3.6.1p2-passexpire20.patch prevents /etc/nologin disp lay on AIX

Elwell, AD (Andrew) A.D.Elwell at dl.ac.uk
Thu Jun 26 00:45:23 EST 2003


Courtesy follow up back to the unix-dev list (mainly for those like me who
searched the archives)

Thanks to the very swift response of Darren, a patched auth.c did the trick

Patch enclosed below (apply after the p20)

I'm guessing he'll either update p20 or issue p21 soon.

Many thanks

Andrew


--- auth.c.orig 2003-06-25 23:14:16.000000000 +1000
+++ auth.c      2003-06-25 23:13:36.000000000 +1000
@@ -240,11 +240,12 @@
         * non-root user (since loginrestrictions will always fail).
         */
        if ( (pw->pw_uid != 0) && (geteuid() == 0) ) {
-               int loginrestrict_errno = errno;
                char *msg;

                /* check for AIX account restrictions */
                if (loginrestrictions(pw->pw_name, S_RLOGIN, NULL, &msg) !=
0) {
+                       int loginrestrict_errno = errno;
+
                        if (msg && *msg) {
                                aix_remove_embedded_newlines(msg);
                                log("Login restricted for %s: %.100s",




More information about the openssh-unix-dev mailing list