Last user to login from a given IP
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Last user to login from a given IP




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Last user to login from a given IP  
James


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-19-07 06:23 PM

I'm trying to find the last user to log into our unix system from a
specific terminal.
Now all i have is the IP address - and i cant seem to find the data i
need.

I routed about and found the /etc/wtmpx file, which when viewed with
last seems to almost give me what i need, except there are a lot of
blanks where the IP (hostname) should be - and the IP i'm after isn't
shown, so i would guess it is one of those blanks.....

Any ideas from some of you seasoned veterans where i might find it?

(SCO 3.9 if it helps at all.)





[ Post a follow-up to this message ]



    Re: Last user to login from a given IP  
Barry Margolin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-20-07 12:27 AM

In article
<559a5852-1ffe-42d2-956b-858c4ace39c7@l32g2000hsh.googlegroups.com>,
James <jamesb457@gmail.com> wrote:

> I'm trying to find the last user to log into our unix system from a
> specific terminal.
> Now all i have is the IP address - and i cant seem to find the data i
> need.
>
> I routed about and found the /etc/wtmpx file, which when viewed with
> last seems to almost give me what i need, except there are a lot of
> blanks where the IP (hostname) should be - and the IP i'm after isn't
> shown, so i would guess it is one of those blanks.....
>
> Any ideas from some of you seasoned veterans where i might find it?
>
> (SCO 3.9 if it helps at all.)

If it's blank, it should mean that they didn't login over the network.
Unless you have some remote login daemons that don't record the client
IP/hostname.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***





[ Post a follow-up to this message ]



    Re: Last user to login from a given IP  
Michael Tosch


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-20-07 12:36 PM

James wrote:
> I'm trying to find the last user to log into our unix system from a
> specific terminal.
> Now all i have is the IP address - and i cant seem to find the data i
> need.
>
> I routed about and found the /etc/wtmpx file, which when viewed with
> last seems to almost give me what i need, except there are a lot of
> blanks where the IP (hostname) should be - and the IP i'm after isn't
> shown, so i would guess it is one of those blanks.....
>
> Any ideas from some of you seasoned veterans where i might find it?
>
> (SCO 3.9 if it helps at all.)

If "last" doesn't find it, you can use a separate system log.

In a system login shell

(/etc/login /etc/.login /etc/csh.login,
/etc/profile /etc/.profile ...)

add this code:

who am i >> /tmp/writable_loginlog


--
Michael Tosch @ hp : com





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:25 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register