-   Linux - Newbie (
-   -   how can i know the users connected to my system (

vijaya_svk 09-17-2008 01:32 PM

how can i know the users connected to my system
My system i connected to the network and i am using it through other system using SSH. I have some other friends accessing the system at same time. How can i know who are connected and their IP addresses? if i want to send a message to a connected system how can i do that??

Also I have a broadband connection and i get the IP adresses through DHCP and it will be in the range 192.168.1.XXX. How can i know my gateway, DNS and IP address that ISP has provided to me.

david1941 09-17-2008 01:36 PM

for the system you are connected to: "who" does it

john test 09-17-2008 02:29 PM

"w" also works and gives a little more info

sachin_shetty 09-18-2008 05:11 PM


Originally Posted by john test (Post 3283443)
"w" also works and gives a little more info

These commands are standard in all distributions:
who -a
who and users show who are currently logged on. You can also use last:
Last looks through /var/log/wtmp and displays a log of the last users logged on, including those currently logged on.
Another possibility is to get the users-information from the systems logs:
grep sshd /var/log/messages

neilcpp 09-18-2008 05:57 PM

you could try looking at the netstat utility. type 'man netstat'. this program has many options and could be what you need to see all open connections on a particular machine.
just a thought.

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