setlogin failed: Function not implemented

Eivind Magnus Hvidevold emh at
Mon Oct 27 04:56:50 EST 2003

I'm using openssh-3.7.1p2 on Linux.

I keep getting setlogin errors in /var/log/messages:
Oct 26 18:44:22 giediprime sshd[7774]: Accepted publickey for root from port 39310 ssh2
Oct 26 18:44:22 giediprime sshd[7776]: error: setlogin failed: Function not implemented

Running LFS 4.0. Happens both on 2.6.0-test8 and 2.4.22-ac1.

When configuring openssh I get this in config.log:
configure:6557: checking for setlogin
configure:6594: gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wno-uninitialized   conftest.c -lutil -lz -lnsl  >&5
/tmp/cc4nGZCj.o: In function `main':
/tmp/build/openssh-3.7.1p2/configure:6585: warning: setlogin is not implemented and will always fail
configure:6597: $? = 0
configure:6600: test -s conftest
configure:6603: $? = 0
configure:6613: result: yes

Also noting that there is no #if defined(HAVE_SETLOGIN) or similar
surrounding the offending call at session.c:1259;
		if (setlogin(pw->pw_name) < 0)
			error("setlogin failed: %s", strerror(errno));

Please CC me on replies..


More information about the openssh-unix-dev mailing list