Subject: Re: why sshd and "changing logname from" ...?
To: None <netbsd-help@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: netbsd-help
Date: 08/04/2005 22:15:49
In article <Pine.NEB.4.62.0508041417490.460@pilchuck.reedmedia.net>,
Jeremy C. Reed <reed@reedmedia.net> wrote:
>dmesg reports like:
>
>   sshd (pid 9703) changing logname from reed to reedmedia
>
>And then I log in to pstech and I get another entry:
>
>   sshd (pid 755) changing logname from reedmedia to pstech
>
>I login two more times to pstech, but no more logs.
>
>Then I login into a different account and dmesg has another log:
>
>   sshd (pid 25573) changing logname from pstech to bsdnews
>
>My sshd is started from inetd.
>
>USER PID PPID PGID   SESS JOBC STAT TT    TIME COMMAND
>root 439    1  439 c22440    0 IWs  ?? 0:18.62 /usr/sbin/inetd -l
>
>USER  PID PPID PGID   SESS JOBC STAT TT    TIME COMMAND
>root 4402  439  439 c22440    0 IW   ?? 0:01.30 sshd: bsdnews [priv
>
>USER      PID PPID PGID   SESS JOBC STAT TT    TIME COMMAND
>bsdnews 25573 4402  439 c22440    0 IW   ?? 0:00.02 sshd: bsdnews@ttyp6
>
>Why am I receiving this "changing logname from ... to ..."?
>
>I see the code is from src/sys/kern/kern_prot.c.
>
>How does the sshd process know about the previous login name associated 
>with different process?

File a PR please. It does not do the necessary work to deal with process
groups I think when started from inetd.

christos