LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 02-26-2002, 04:54 PM   #1
Alinuxnoob
Member
 
Registered: Feb 2002
Location: Van city
Distribution: Ubuntu
Posts: 204

Rep: Reputation: 30
How do you find ip address of users?


How do you find the ip address of a user that is login on your PC?
I ran users and it says "root root root" 3 users..... Now I know that my linux box is not even close to secure..... Im still trying to figure out how to setup iptables but Im just wondering how to I find the ip address of any users that are login on my PC?
 
Old 02-26-2002, 05:26 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,452
Blog Entries: 54

Rep: Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895Reputation: 2895
run "netstat -A inet -n", "-A inet" would tighten displaying connections for internet protocols only (no local unix domain sockets), and "-n" sez don't resolve addresses. *Btw, this is a /networking type question, please check and post to the appropriate forum, TIA.
 
Old 02-26-2002, 05:26 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,104

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
hmm, doesn't sound like you necessarily have a security problem, when you type WHO, it lists EVERY instance of root, be it a real login, or an open terminal window the who output should read something like:





[root@hostname]#who


root ttyX (for virtual consols logged in as root)


root :X (for x window servers logged in as root)


root ttySX (for serial terminal connections logged in as root)


root pts/X (for any terminal windows open within x windows)





X being any number, note that nobody should be able to acces your computer as root from any terminal not specified in /etc/securetty, users using su will not show up as root, hope this helps, cheers
 
Old 02-26-2002, 05:27 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,104

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
hmm, doesn't sound like you necessarily have a security problem, Try typing who instead of users it lists not only the users logged on, but where they are loging on from,be it a real login, or an open terminal window the who output should read something like:





[root@hostname]#who


root ttyX (for virtual consols logged in as root)


root :X (for x window servers logged in as root)


root ttySX (for serial terminal connections logged in as root)


root pts/X (for any terminal windows open within x windows)





X being any number, note that nobody should be able to acces your computer as root from any terminal not specified in /etc/securetty, users using su will not show up as root, hope this helps, cheers
 
Old 02-26-2002, 05:28 PM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,104

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
oops, accidentally ran 2 replys
 
Old 02-26-2002, 07:03 PM   #6
Alinuxnoob
Member
 
Registered: Feb 2002
Location: Van city
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
THx whoops I guess I really don't have a security problem but I did learn something new tho
thx for the help :-)
 
Old 02-28-2002, 08:42 AM   #7
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,104

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
no problem, glad I could help someone breathe easier, hope you never really are hacked, i was once, though not while using a linux box, and i'ts a real pain.
 
  


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
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM
How to find IP address of a machine if I know their MAC Address dysenteryduke Linux - Networking 13 09-12-2005 10:21 AM
different IP address for windows users naughtymutt Linux - Networking 1 07-17-2005 07:26 PM
How to find MAC address of a specified IP address ? longtongfish Programming 1 07-12-2005 03:26 PM
How do I find my IP address?? Rosmo Linux - Networking 7 10-29-2004 03:55 PM


All times are GMT -5. The time now is 07:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration