LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-02-2007, 08:06 AM   #1
mpramodkaushik
LQ Newbie
 
Registered: Mar 2007
Location: India
Distribution: Fedora, Debian
Posts: 6

Rep: Reputation: 0
Finding a user on a network


Hi,
I am on a network with all computers on the same domain.
It is a network system in which users have logins and quotas.
Is there a way to find out the hostname of a computer on which a user(specified by the username) is logged on?

Thanks in advance.
Pramod
 
Old 04-02-2007, 08:38 AM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Try the command 'w'
 
Old 04-03-2007, 03:14 AM   #3
mpramodkaushik
LQ Newbie
 
Registered: Mar 2007
Location: India
Distribution: Fedora, Debian
Posts: 6

Original Poster
Rep: Reputation: 0
'w' shows the users logged on to the computer I am working on.
I want to find the IP of a computer on which a given user is logged on.

Pramod
 
Old 04-03-2007, 11:34 AM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Try 'w -f'
 
Old 04-04-2007, 11:18 AM   #5
mpramodkaushik
LQ Newbie
 
Registered: Mar 2007
Location: India
Distribution: Fedora, Debian
Posts: 6

Original Poster
Rep: Reputation: 0
Hi,
'w -f' does the same thing as w.
I need to find users online on a network.
For Example, if X is logged on to the computer beside me. i need a command which'll tell me that X has logged on to the computer beside me(in terms of IP).

Pramod
 
Old 04-04-2007, 01:50 PM   #6
kcorupe
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Arch
Posts: 107

Rep: Reputation: 15
Quote:
Originally Posted by mpramodkaushik
Hi,
'w -f' does the same thing as w.
I need to find users online on a network.
For Example, if X is logged on to the computer beside me. i need a command which'll tell me that X has logged on to the computer beside me(in terms of IP).

Pramod
"who" or "w" will show who is logged onto the current machine (and display the ip from where they are connected, like if someone ssh's into the box)

Are you talking about people logged into their own machines? Like bob starts up his xp machine on the network you are on, and you want to know bob's ip address?
 
Old 04-05-2007, 02:12 AM   #7
mpramodkaushik
LQ Newbie
 
Registered: Mar 2007
Location: India
Distribution: Fedora, Debian
Posts: 6

Original Poster
Rep: Reputation: 0
Exactly, but Bob is logged on to his linux machine not XP.
I want to know the IP of Bob's computer, given that Bob and I are in the same domain.


Pramod
 
Old 04-05-2007, 08:16 AM   #8
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
I don't think you'll be able to do that unless you are using some form of central authentication such as NIS or LDAP.

A program you can use to look up remote logons is 'finger' but it is not secure; I've never used it and I don't recommend it.

If your are running Samba on all the computers then you'll be able to view the NetBIOS Table which gets copied to all the computers. For that you can use the program 'nbtscan' on your LAN - it will print the computer name, ip address and sometimes the mac address too - I always thought of that as another reason why Windows networking is so insecure.
 
Old 04-05-2007, 01:54 PM   #9
kcorupe
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Arch
Posts: 107

Rep: Reputation: 15
if you want to find other people on the network, windows/linux boxes.

you could try

[HTML]arp -a[/HTML]

you could also use

nmblookup if your hooked up with samba.
 
Old 04-05-2007, 02:25 PM   #10
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
findsmb does the same thing as nbtscan - I just had not used nbtscan for so long. Try findsmb.
 
Old 04-07-2007, 01:20 AM   #11
cseanburns
Member
 
Registered: Nov 2003
Distribution: Fedora, Debian, Ubuntu, FreeBSD
Posts: 129

Rep: Reputation: 23
if it's available, you want: rusers

e.g.: rusers -al
 
Old 04-08-2007, 05:49 PM   #12
mpramodkaushik
LQ Newbie
 
Registered: Mar 2007
Location: India
Distribution: Fedora, Debian
Posts: 6

Original Poster
Rep: Reputation: 0
Hi

rusers is not working. it is not giving any output.
Please help

thanks
Pramod
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
finding user accounts bjimmyb Linux - Networking 2 06-01-2006 09:37 AM
finding total used space by a user in a directory vince_2x Linux - General 1 09-21-2004 06:49 AM
What is the command for finding the last 3 times the user had logged into the system? Linux_interest Linux - Newbie 3 08-27-2004 05:02 AM
What is the command for finding the last 3 times the user had logged into the system? Linux_interest Linux - General 1 08-27-2004 03:14 AM
Trouble finding network-network not available General Dude Linux - Networking 2 03-06-2004 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration