[Bug 283] New: UsePrivilegeSeparation fails on AIX, Couldn't set usrinfo:

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Jun 22 07:51:23 EST 2002


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

           Summary: UsePrivilegeSeparation fails on AIX, Couldn't set
                    usrinfo:
           Product: Portable OpenSSH
           Version: -current
          Platform: PPC
        OS/Version: AIX
            Status: NEW
          Severity: major
          Priority: P2
         Component: sshd
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: janfrode at parallab.uib.no


OpenSSH 3.3p1 fails on AIX5.1 with UsePrivilegeSeparation enabled. If the server
is running with '-d' the client prints /etc/motd and then dies with the message:

Couldn't set usrinfo: Operation not permitted.
debug1: Calling cleanup 0x2002a5ec(0x20032b58)
debug1: Calling cleanup 0x2002a430(0x0)
Connection to en closed by remote host.
Connection to en closed.

Commenting out:

        if (usrinfo(SETUINFO, cp, i) == -1)
                fatal("Couldn't set usrinfo: %s", strerror(errno));

from openbsd-compat/port-aix.c

The man-page for userinfo() states that:

"EPERM The Command parameter is set to SETUINFO, and the calling process does
not have root user authority."

so I'm guessing the privilege separated OpenSSH tries to call this as a normal
user (or the sshd user?).


   -jf



------- 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