I poked around at the source last night for a while. I wish I were a C
programmer, but I'm not.
Turns out that 'w' uses the utmp file. Also turns out that sshd makes a
utmp entry just fine (see lib/sshsession/wtmp.c). So the theory put forth
by one of our sysadmins that sshd wasn't making a wtmp/wtmpx/utmp entry
isn't the case.
Strangely, this "undocumented feature" doesn't appear on my development
machine (Solaris 2.6 / SPARC-2), only on my production servers (Solaris
2.6 / SPARC-5s and SPARC-2s). On the dev machine, even users sitting idle
in their shells (normal users have PERL menus instead of real shells) show
up in 'w'. Which means that there's a difference in utmp process
accounting between my dev box and the live box, and this difference
doesn't appear to be in the ssh source at all.
The utmp.h files are identical on the two machines, and both are using the
vendor-supplied libc.so.1
Any other ideas where I could look to find the cause of this problem would
be much appreciated! A list of libraries and header files involved in utmp
entries, even, would be a good place to start.
--
Gregor Mosheh
[EMAIL PROTECTED]
On-Site Systems Admin, Humboldt Internet
707.825.4638
On Tue, 10 Aug 1999, Patricia Max wrote:
>
> Well, I see the same thing.
>
> pat
>
>
> ----- Begin Included Message -----
>
> >From [EMAIL PROTECTED] Tue Aug 10 14:38:24 1999
> Date: Tue, 10 Aug 1999 13:07:09 -0700 (PDT)
> From: Gregor Mosheh <[EMAIL PROTECTED]>
> To: Patricia Max <[EMAIL PROTECTED]>
> Subject: Re: Users not showing up in 'w'
> Message-ID: <[EMAIL PROTECTED]>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> Content-Length: 1579
>
>
> No, no reply at all. Are you having the same problem?
>
> --
> Gregor Mosheh
> [EMAIL PROTECTED]
> On-Site Systems Admin, Humboldt Internet
> 707.825.4638
>
>
> On Tue, 10 Aug 1999, Patricia Max wrote:
>
> >
> >
> > Did you get a response to this? I have not seen an answer to the entire list,
> > but maybe I missed it.
> >
> > Thanks.
> >
> > ----- Begin Included Message -----
> >
> > >From [EMAIL PROTECTED] Fri Aug 6 18:58:08 1999
> > X-Authentication-Warning: lohi.clinet.fi: majordom set sender to
>[EMAIL PROTECTED] using -f
> > Date: Fri, 6 Aug 1999 16:27:07 -0700 (PDT)
> > From: Gregor Mosheh <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: Users not showing up in 'w'
> > Message-ID: <[EMAIL PROTECTED]>
> > MIME-Version: 1.0
> > Content-Type: TEXT/PLAIN; charset=US-ASCII
> > Sender: [EMAIL PROTECTED]
> > Content-Length: 630
> >
> >
> > I've installed SSH (freeware UNIX version) on several Solaris servers.
> > When a user is logged in via SSH, they don't show up in the output of 'w'
> > or 'finger'. They show up just fine, however, if they log in via telnet
> > instead of SSH. The 'last' command accurately reflects who's logged in,
> > whether by SSH or by telnet.
> >
> > This problem exists on all 6 servers, some running Solaris 2.5.1 and some
> > running Solaris 2.6
> >
> > Any ideas on how to fix this problem? It'd be nice to use 'w' to see what
> > users are logged in and what they're up to.
> >
> > --
> > Gregor Mosheh
> > [EMAIL PROTECTED]
> > On-Site Systems Admin, Humboldt Internet
> > 1.707.825.4638
> >
> >
> >
> >
> > ----- End Included Message -----
> >
> >
> >
>
>
>
> ----- End Included Message -----
>
>