Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-03-2006, 03:00 AM   #1
Registered: Oct 2005
Location: Bangladesh
Posts: 502

Rep: Reputation: 31
Cool Find Ip for particular user/pc

Dear friends ,

Suppose i have a local nework which has 10 private ip , like to . And it has 10 different users .

Now i want to know which pc or user is used for which ip ?i.e.,Is there any tools for this regard which helps me to find out which IP is used for which user ?
Old 07-03-2006, 05:29 AM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Does ifconfig cover your needs?

Actually a user or pc isn't assigned an ip. An interface has an ip. A user or pc can have several ips or none.

Last edited by Agrouf; 07-03-2006 at 05:30 AM.
Old 07-03-2006, 05:52 AM   #3
Registered: Oct 2005
Location: Bangladesh
Posts: 502

Original Poster
Rep: Reputation: 31
Smile which IP is used in which pc

Dear Agrouf ,

Basically Among these 10 pc , one is using as Server . using ifconfig i can get ip from a particular PC where i enter this command . But i need to know to find out "which IP" is used in which "Local PC" and i need to find it from the Server ?
Old 07-03-2006, 06:09 AM   #4
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
Ummm... how would you go about matching those?

Even if you use finger you need to know the user-id you're after,
and check whether they're logged in.

The only really distinguishing factor would be the machines' mac-
addresses, which you get from arp

Old 07-03-2006, 06:41 AM   #5
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Maybe you can try ssh'ing to each of the computers and running some commands (like "who", "ifconfig") to
get the information you need? But those logins probably include both local and remote ones.
But you'll need to have an account on each of the machines if you want to remotely login on them from the server.

Also, if the machines are on the same network, isn't it easier to just go over to the machine and check who's using it?
Old 07-03-2006, 07:54 AM   #6
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
if the server is a DHCP server and the clients use a dhcp client, you can see the list of leases here :
This is the list of the ip the server assigned.
the nmap command can help you detecting whether root is connected on a machine and also for pinging a range of address (check man nmap).
The arp command can lists the arp table (linking MAC to IP).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
New user: can't find files Matty-J Debian 6 10-05-2005 11:13 AM
Can't find user id Navaboy Slackware 4 02-01-2005 11:26 AM
How can I find out ANYTHING a user is doing? icyfire Linux - General 4 11-24-2004 11:02 PM
id: cannot find name for user ID 500 stakhous Linux - Newbie 1 07-02-2004 03:25 PM
Where to find the user log? kamil Linux - Networking 4 04-06-2002 05:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:11 PM.

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