From owner-freebsd-questions Sun Nov 11 2:54:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.focalnetworks.net (alpha.focalnetworks.net [209.135.104.32]) by hub.freebsd.org (Postfix) with SMTP id 7B3AD37B41A for ; Sun, 11 Nov 2001 02:54:13 -0800 (PST) Received: (qmail 96188 invoked by uid 1000); 11 Nov 2001 11:03:10 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 11 Nov 2001 11:03:10 -0000 Date: Sun, 11 Nov 2001 06:03:10 -0500 (EST) From: project10 To: Wade Majors Cc: 'Bsd Neophyte' , Subject: RE: how to get the IP address of someone logging into the server on the console In-Reply-To: <001801c16a9b$d3732b60$9700a8c0@ezri> Message-ID: <20011111055554.J95500-100000@alpha.focalnetworks.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG That would be logged in the file /var/log/wtmp* -- current login information is in /var/run/utmp. Sameer, what you want to do depends on how you are logging in -- sshd doesn't call login(1) (is this accurate? I'm guessing, here.) and as such won't produce similar messages to say, a telnet login. However, on my system, both sshd and telnet log originating IP: Nov 11 05:48:20 omega sshd[2215]: Accepted password for project10 from #host# port 21034 ssh2 Nov 11 05:49:00 omega login: login from #host# on ttyp2 as project10 Don't ask me how I got them to do that. I believe sshd does that automagically. --------- Shawn Lussier On Sun, 11 Nov 2001, Wade Majors wrote: > Last login: Sun Nov 11 03:43:14 2001 from ezri.ezri.org <==== > Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 > The Regents of the University of California. All rights > reserved. > FreeBSD 4.4-STABLE (METIS) #3: Mon Nov 5 00:05:44 EST 2001 > > > When I log into my machine I get the above message. Don't ask me where > that's logged, though. > > -Wade > > > -----Original Message----- > > From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd- > > questions@FreeBSD.ORG] On Behalf Of Bsd Neophyte > > Sent: Sunday, November 11, 2001 5:03 AM > > To: freebsd-questions@FreeBSD.ORG > > Subject: how to get the IP address of someone logging into the server > on > > the console > > > > > > When I login to my FreeBSD box using putty... there something appears > on > > the console indicating the time and the terminal I used. I want to > take > > it beyond this... I want to also be able to see the IP address I was > using > > when I logged into the machine. > > > > Is there anyway to do this? > > > > Any and all help will be appreciated. > > > > -Sameer > > > > __________________________________________________ > > Do You Yahoo!? > > Find a job, post your resume. > > http://careers.yahoo.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message