Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jul 2000 19:19:23 -0600 (MDT)
From:      John Galt <galt@inconnu.isu.edu>
To:        Ataualpa Albert Carmo Braga <atabraga@iqm.unicamp.br>
Cc:        questions@FreeBSD.ORG
Subject:   Re: monitoring logons
Message-ID:  <Pine.LNX.4.21.0007011905060.27863-100000@inconnu.isu.edu>
In-Reply-To: <14686.37963.257796.131825@bico-de-lacre.iqm.unicamp.br>

next in thread | previous in thread | raw e-mail | index | archive | help

For some reason is /var/log/wtmp missing?  The manpages for who and last
both say that they depend on var/log/wtmp.  I can't see your system
allowing logins if wtmp is missing, but it sounds like that's where I'd
look at first.  You MIGHT be able to look through /var/log/wtmp manually,
but it isn't built to be human-readable, so you might have to wade through
some weird escaped characters to get anything...BTW, you have the syntax
wrong for last: it should be 'last -f /var/log/wtmp', 'last /var/log/wtmp'
will look for the last time user '/var/log/wtmp' logged in, but last
defaults to '-f /var/log/wtmp' anyway....


On Sat, 1 Jul 2000, Ataualpa Albert Carmo Braga wrote:

> 
> I don't know why, bud in this machine i only get:
> 
> [bico]who | grep ttyv
> [bico]who /var/log/wtmp|grep ttyv
> [bico]
> 
> [bico]last | grep ttyv
> [bico]
> [bico]last /var/log/wtmp | grep ttyv
> [bico]
> 
> In others machines the behaviour is the usually.
> 
> Any tips?
> 
> thanks,
> 
> Ata.
> 
> on Saturday, 1 Jul 2000 18:27:51, John Galt wrote:
> > 
> > who /var/log/wtmp|grep ttyv
> > 
> > if you want a smnapshot as of now:
> > 
> > who|grep ttyv
> > 
> > On Thu, 29 Jun 2000, Ataualpa Albert Carmo Braga wrote:
> > 
> > > 
> > > Hi,
> > > 
> > >         is there a script to monitoring who locally logon? For
> > >         example, when someone logon for a remote machine i use last,
> > >         bud if locally?
> > > 
> > > Thanks,
> > > 
> > > Ata.
> > > 
> > > PS: sorry for poor english
> > > 
> > > 
> > 
> 

-- 

You have paid nothing for the preceding, therefore it's worth every penny
you've paid for it: if you did pay for it, might I remind you of the
immortal words of Phineas Taylor Barnum regarding fools and money?

Who is John Galt?  galt@inconnu.isu.edu, that's who!




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0007011905060.27863-100000>