Solaris utmp problems
Yozo TODA
yozo at ipc.chiba-u.ac.jp
Wed May 31 22:15:51 EST 2000
> http://violet.ibs.com.au/openssh/files/test/openssh-TEST-2000053100.tar.gz
I tried on Solaris8/sparc (with IPv6 enabled).
login.c should be fixed to compile all.
% diff login.c.orig login.c
256c256
< login(&utx);
---
> login(&u,&utx);
then compilation and installation done smoothly,
though I saw many warning messages like
gcc -g -O2 -Wall -I/usr/local/include -I/opt/openssl/include
-DETCDIR=\"/opt/openssh/etc\" -DSSH_PROGRAM=\"/opt/openssh/bin/ssh\"
-DSSH_ASKPASS_DEFAULT=\"/opt/openssh/libexec/ssh/ssh-askpass\"
-DHAVE_CONFIG_H -c -o pty.o pty.c
pty.c: In function `pty_setowner':
pty.c:298: warning: int format, uid_t arg (arg 3)
pty.c:298: warning: int format, gid_t arg (arg 4)
pty.c:301: warning: unsigned int format, mode_t arg (arg 3)
actually I did the following three-step;
% configure --prefix=/opt/openssh --with-utmpx --with-catman=cat
% make
% make install
but I have two (and one more) problems.
(1)
looks like sshd doesn't update utmpx (and other files?) appropriately.
I login to the system, but last command indicates nothing.
% last -n 10
reboot system boot Wed May 31 17:52
yozo console Wed May 31 17:44 - down (00:08)
reboot system boot Wed May 31 17:43
yozo console Wed May 31 17:39 - down (00:03)
moreover, w and who commands don't work.
% w
8:36pm up 11157 day(s), 19:50, 0 users, load average: 0.02, 0.03, 0.04
User tty login@ idle JCPU PCPU what
% who
Segmentation Fault (core dumped)
%
(2)
sshd opens two IPv4 sockets for tcp port 22.
in the following, one process(pid 712) of sshd is serving my login session,
another process(pid 326) is opening two sockets for ipv4, one socket for ipv6.
% ps -ef | grep ssh
root 326 1 0 17:52:43 ? 0:01 /opt/openssh/sbin/sshd
root 712 326 0 19:57:20 ? 0:01 /opt/openssh/sbin/sshd
yozo 1174 748 0 20:41:54 pts/1 0:00 grep ssh
% netstat -an | grep 22
*.22 *.* 0 0 24576 0 LISTEN
*.22 *.* 0 0 24576 0 LISTEN
*.22 *.* 0 0 24576 0 LISTEN
fe80::a00:20ff:fecf:d309.22 fe80::a00:20ff:fecf:d339.32771 25920 19 25920 0 ESTABLISHED
%
I don't know how openssh treats IPv4 and IPv6 sockets,
but I think the problem is in IPv4 part.
(3)
when connecting to openssh hosts from ssh-2.0.12 hosts,
publickey authentication doesn't work.
openssh sshd writes the following message to syslog;
May 31 18:21:52 host sshd[525]: [ID 800047 auth.info] bug compatibility w
ith ssh-2.0.13 pubkey not implemented
I suppose this part is not yet implemented...
-- yozo.
More information about the openssh-unix-dev
mailing list