From owner-freebsd-questions Sat Jul 1 18:19:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from inconnu.isu.edu (inconnu.isu.edu [134.50.8.55]) by hub.freebsd.org (Postfix) with ESMTP id 0E46737B5F7 for ; Sat, 1 Jul 2000 18:19:31 -0700 (PDT) (envelope-from galt@inconnu.isu.edu) Received: from localhost (galt@localhost) by inconnu.isu.edu (8.9.3/8.9.3) with ESMTP id TAA31369; Sat, 1 Jul 2000 19:19:23 -0600 Date: Sat, 1 Jul 2000 19:19:23 -0600 (MDT) From: John Galt To: Ataualpa Albert Carmo Braga Cc: questions@FreeBSD.ORG Subject: Re: monitoring logons In-Reply-To: <14686.37963.257796.131825@bico-de-lacre.iqm.unicamp.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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