Link to home
Start Free TrialLog in
Avatar of maliksl4141
maliksl4141

asked on

show all remote users

hi..how to see
all users connected to my solaris server
locally and remotely.

tq
Avatar of yuzh
yuzh

at your server type in:
who <enter>
Avatar of maliksl4141

ASKER

is that show all connected users
thru telnet,x11 etc.
what about users that connected
to my server thru application.

tq
Well, you can use the following command to see the connetion between you server and the other machine:

netstat -a | grep `uname -n` | sort

This will give you an idea what machine is connet to your server and what ports are used. Some time is hard to tell who is using the application.

w, who, or rwho (if rhod is running) to show login sessions (telnet, rsh, ssh)
netstat -an|grep ESTABLISHED
  for any application
what about if somebody is accessing my machine through nfs ..?


msnr
msnr, NFS:
as long as the connection (means traffic) is established, you see connects to port 2049 (or whatever is configured).
The same problem applies to any connection controlled by the portmapper, you need to use tcp_wrapper to control it.
It is very hard to tell who is using NFS.
can fuser help us in this regard.?

msnr
fuser will, if at all, only report local users
another good tool for listing network connections to your machine is lsof.

show all (i)nternet network connections
lsof -i

show all ssh(port 22) connections
lsof -i :22

you can get it as a package from http://www.sunfreeware.com/
question is about users, not hosts
i think i'll use ahoffman suggestion
for the time being.

netstat -an|grep ESTABLISHED
 
(how to give points here)

No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- PAQ, no points refunded

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
ASKER CERTIFIED SOLUTION
Avatar of SpideyMod
SpideyMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial