Displaying 3 results from an estimated 3 matches for "loginrestrict_errno".
2003 Jul 05
0
[PATCH] Replace AIX loginmsg with generic Buffer loginmsg
...6 +206,23 @@
* PermitRootLogin to control logins via ssh), or if running as
* non-root user (since loginrestrictions will always fail).
*/
- if ((pw->pw_uid != 0) && (geteuid() == 0) &&
- loginrestrictions(pw->pw_name, S_RLOGIN, NULL, &loginmsg) != 0) {
- int loginrestrict_errno = errno;
+ if ((pw->pw_uid != 0) && (geteuid() == 0)) {
+ char *msg;
- if (loginmsg && *loginmsg) {
- /* Remove embedded newlines (if any) */
- char *p;
- for (p = loginmsg; *p; p++) {
- if (*p == '\n')
- *p = ' ';
+ if (loginrestrictions(pw-&...
2003 Jun 25
2
openssh-3.6.1p2-passexpire20.patch prevents /etc/nologin disp lay on AIX
...drew
--- 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) {...
2003 Jun 25
2
openssh-3.6.1p2-passexpire20.patch prevents /etc/nologin display on AIX
Hi there,
I have just compiled up 3.6.1p2 both with and without Darren Tuckers
passexpire patch.
However, with the patch applied /etc/nologin isn't displayed to users (on
AIX 5.1 / PSSP)
The patched vesion seems to fail with "illegal user" - some parts of a debug
3 log...
debug1: userauth-request for user ade45 service ssh-connection method none
debug1: attempt 0 failures 0