Elwell, AD (Andrew)
2003-Jun-25 14:45 UTC
openssh-3.6.1p2-passexpire20.patch prevents /etc/nologin disp lay on AIX
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",
Darren Tucker
2003-Jun-28 01:24 UTC
openssh-3.6.1p2-passexpire20.patch prevents /etc/nologin display on AIX
"Elwell, AD (Andrew)" wrote:> Patch enclosed below (apply after the p20) > > I'm guessing he'll either update p20 or issue p21 soon.For anyone affected by this (it was specific to AIX when /etc/nologin was used), I have put up a passexpire21 patch. This is the only change from 20. -Daz. http://www.zip.com.au/~dtucker/openssh/openssh-3.6.1p2-passexpire21.patch -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Quite a while back, it was mentioned that for 3.7, password expiry would be addressed. Is this still the case? Will the password expiry patch that is commonly available be used? Or will some other mechanism be used to accomplish this well needed functionality? Thanks, Brian Hayward>>I have put up a passexpire21 patch. This is the only change from
Seemingly Similar Threads
- openssh-3.6.1p2-passexpire20.patch prevents /etc/nologin display on AIX
- [PATCH] Replace AIX loginmsg with generic Buffer loginmsg
- [PATCH] AIX password expiration
- [PATCH #9] Password expiration via /bin/passwd.
- OpenSSH 2.1.1p2: /etc/nologin handling and related stuff