[Bug 446] New: $LOGIN not set by openssh under AIX

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Nov 27 06:49:13 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=446

           Summary: $LOGIN not set by openssh under AIX
           Product: Portable OpenSSH
           Version: -current
          Platform: All
        OS/Version: AIX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sshd
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: mii at ornl.gov


I'd like to submit a request to get the following patch incorporated
into openssh.  AIX generates an environment variable called $LOGIN
when using telnet/rsh.  This appears to be generated by /bin/login.
However, turning on UseLogin disables X11Forwarding, so that doesn't
help us much.  Some scripts (most notably netscape at the present)
reference $LOGIN, so if users ssh into our machines, the script will
blow up.  This seems like a reasonable thing to do since the AIX
native remote login facilities set this variable.  The AIXtoolbox
group which maintains the AIX version of openssh for IBM is
incorporating this patch into their version.

What are the chances of getting this incorporated into the openssh
distribution?

*** session.c.3.5p1     Wed Sep 25 20:38:50 2002
--- session.c   Mon Nov 25 12:28:41 2002
***************
*** 969,974 ****
--- 969,977 ----
                /* Set basic environment. */
                child_set_env(&env, &envsize, "USER", pw->pw_name);
                child_set_env(&env, &envsize, "LOGNAME", pw->pw_name);
+ #ifdef _AIX
+               child_set_env(&env, &envsize, "LOGIN", pw->pw_name);
+ #endif
                child_set_env(&env, &envsize, "HOME", pw->pw_dir);
  #ifdef HAVE_LOGIN_CAP
                if (setusercontext(lc, pw, pw->pw_uid, LOGIN_SETPATH) < 0)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list