Finding a user that was logged into device
We had a user damage one of mobile PC's and I'm trying to track who
was logged onto that device. I've looked in the /var/adm/wtmp file but
it only give me a list containing the pts. Is there a log file that I
could match this up to that would contain were a connection was
originated from. The PC in question is set up in the /etc/hosts file.
I just need a log to find the device and pts to compare with. Is there
such a log??
Re: Finding a user that was logged into device
On Oct 4, 11:57 am, wlippinc...@gmail.com wrote:[color=blue]
> We had a user damage one of mobile PC's and I'm trying to track who
> was logged onto that device. I've looked in the /var/adm/wtmp file but
> it only give me a list containing the pts. Is there a log file that I
> could match this up to that would contain were a connection was
> originated from. The PC in question is set up in the /etc/hosts file.
> I just need a log to find the device and pts to compare with. Is there
> such a log??[/color]
If you know the IP address that was assigned to the mobile PC, you can
try this command:
last|grep "[put_the_IP_address_here]"
Re: Finding a user that was logged into device
On Oct 4, 12:35 pm, steven_nospam at Yahoo! Canada
<steven_nos...@yahoo.ca> wrote:[color=blue]
> On Oct 4, 11:57 am, wlippinc...@gmail.com wrote:
>[color=green]
> > We had a user damage one of mobile PC's and I'm trying to track who
> > was logged onto that device. I've looked in the /var/adm/wtmp file but
> > it only give me a list containing the pts. Is there a log file that I
> > could match this up to that would contain were a connection was
> > originated from. The PC in question is set up in the /etc/hosts file.
> > I just need a log to find the device and pts to compare with. Is there
> > such a log??[/color]
>
> If you know the IP address that was assigned to the mobile PC, you can
> try this command:
>
> last|grep "[put_the_IP_address_here]"[/color]
The command was accepted without and syntax errors, but it isn't
returning any values.
Thanks for the idea though.
Re: Finding a user that was logged into device
On Oct 4, 1:43 pm, wlippinc...@gmail.com wrote:[color=blue]
> On Oct 4, 12:35 pm, steven_nospam at Yahoo! Canada
>
> <steven_nos...@yahoo.ca> wrote:[color=green]
> > On Oct 4, 11:57 am, wlippinc...@gmail.com wrote:[/color]
>[color=green][color=darkred]
> > > We had a user damage one of mobile PC's and I'm trying to track who
> > > was logged onto that device. I've looked in the /var/adm/wtmp file but
> > > it only give me a list containing the pts. Is there a log file that I
> > > could match this up to that would contain were a connection was
> > > originated from. The PC in question is set up in the /etc/hosts file.
> > > I just need a log to find the device and pts to compare with. Is there
> > > such a log??[/color][/color]
>[color=green]
> > If you know the IP address that was assigned to the mobile PC, you can
> > try this command:[/color]
>[color=green]
> > last|grep "[put_the_IP_address_here]"[/color]
>
> The command was accepted without and syntax errors, but it isn't
> returning any values.
> Thanks for the idea though.[/color]
Perhaps just try this:
last|more
....then scan the list to see who has been logging in on ALL PCs. The
IP address may not show up as xxx.xxx.xxx.xxx if the user who logged
in has an entry in the /etc/hosts file. For example, you may see
"mobilepc.companyname.com" instead of an IP.
If not, you might also try:
who /var/adm/wtmp
That is supposed to show a history of logins on the server.
Good luck!
Steve
Re: Finding a user that was logged into device
On Oct 4, 12:53 pm, steven_nospam at Yahoo! Canada
<steven_nos...@yahoo.ca> wrote:[color=blue]
> On Oct 4, 1:43 pm, wlippinc...@gmail.com wrote:
>
>
>[color=green]
> > On Oct 4, 12:35 pm, steven_nospam at Yahoo! Canada[/color]
>[color=green]
> > <steven_nos...@yahoo.ca> wrote:[color=darkred]
> > > On Oct 4, 11:57 am, wlippinc...@gmail.com wrote:[/color][/color]
>[color=green][color=darkred]
> > > > We had a user damage one of mobile PC's and I'm trying to track who
> > > > was logged onto that device. I've looked in the /var/adm/wtmp file but
> > > > it only give me a list containing the pts. Is there a log file that I
> > > > could match this up to that would contain were a connection was
> > > > originated from. The PC in question is set up in the /etc/hosts file.
> > > > I just need a log to find the device and pts to compare with. Is there
> > > > such a log??[/color][/color]
>[color=green][color=darkred]
> > > If you know the IP address that was assigned to the mobile PC, you can
> > > try this command:[/color][/color]
>[color=green][color=darkred]
> > > last|grep "[put_the_IP_address_here]"[/color][/color]
>[color=green]
> > The command was accepted without and syntax errors, but it isn't
> > returning any values.
> > Thanks for the idea though.[/color]
>
> Perhaps just try this:
>
> last|more
>
> ...then scan the list to see who has been logging in on ALL PCs. The
> IP address may not show up as xxx.xxx.xxx.xxx if the user who logged
> in has an entry in the /etc/hosts file. For example, you may see
> "mobilepc.companyname.com" instead of an IP.
>
> If not, you might also try:
>
> who /var/adm/wtmp
>
> That is supposed to show a history of logins on the server.
>
> Good luck!
>
> Steve[/color]
I actually got it by using who -u /var/adm/wtmp. That gave me the
name, the session id, the location, and the time that they logged in.
Thanks for the help.