LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Dear friends ,

Suppose i have a local nework which has 10 private ip , like 192.168.10.1 to 192.168.10.10 . 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
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
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
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Original Poster
Rep: Reputation: 30
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
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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


Cheers,
Tink
 
Old 07-03-2006, 06:41 AM   #5
timmeke
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
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
if the server is a DHCP server and the clients use a dhcp client, you can see the list of leases here :
/var/lib/dhcp/dhcpd.leases
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).
 
  


Reply


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


All times are GMT -5. The time now is 01:03 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration