fatal: getgroups: Bad address - hmm?



I'm trying to login to a SSH server running in a chrooted environment.

Unfortunately, it fails with "fatal: getgroups: Bad address".

Do I need to set up any special things in order to connect to a SSH server running in a chroot?

Below, a full DEBUG2 log from the server:


Sep 4 09:34:28 dom sshd[18598]: debug1: rexec start in 4 out 4 newsock 4 pipe 6 sock 7
Sep 4 09:34:28 dom sshd[18593]: debug1: Forked child 18598.
Sep 4 09:34:29 dom sshd[18598]: debug1: inetd sockets after dupping: 3, 3
Sep 4 09:34:29 dom sshd[18598]: Connection from 127.0.0.1 port 58234
Sep 4 09:34:29 dom sshd[18598]: debug1: Client protocol version 2.0; client software version OpenSSH_5.1
Sep 4 09:34:29 dom sshd[18598]: debug1: match: OpenSSH_5.1 pat OpenSSH*
Sep 4 09:34:29 dom sshd[18598]: debug1: Enabling compatibility mode for protocol 2.0
Sep 4 09:34:29 dom sshd[18598]: debug1: Local version string SSH-2.0-OpenSSH_4.3p2 Debian-9etch2
Sep 4 09:34:29 dom sshd[18598]: debug2: fd 3 setting O_NONBLOCK
Sep 4 09:34:29 dom sshd[18598]: debug2: Network child is on pid 18599
Sep 4 09:34:29 dom sshd[18598]: debug2: monitor_read: 0 used once, disabling now
Sep 4 09:34:31 dom sshd[18598]: debug2: monitor_read: 5 used once, disabling now
Sep 4 09:34:31 dom sshd[18598]: debug2: monitor_read: 7 used once, disabling now
Sep 4 09:34:31 dom sshd[18598]: debug1: PAM: initializing for "root"
Sep 4 09:34:31 dom sshd[18598]: debug1: PAM: setting PAM_RHOST to "localhost"
Sep 4 09:34:31 dom sshd[18598]: debug1: PAM: setting PAM_TTY to "ssh"
Sep 4 09:34:31 dom sshd[18598]: debug2: monitor_read: 48 used once, disabling now
Sep 4 09:34:31 dom sshd[18598]: debug2: monitor_read: 3 used once, disabling now
Sep 4 09:34:31 dom sshd[18598]: Failed none for root from 127.0.0.1 port 58234 ssh2
Sep 4 09:34:31 dom sshd[18598]: debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
Sep 4 09:34:31 dom sshd[18598]: debug1: temporarily_use_uid: 0/0 (e=0/0)
Sep 4 09:34:31 dom sshd[18598]: fatal: getgroups: Bad address
Sep 4 09:34:31 dom sshd[18598]: debug1: do_cleanup



--
Tomasz Chmielewski
http://wpkg.org