Solved

show all remote users

Posted on 2002-07-03
14
1,292 Views
Last Modified: 2013-12-27
hi..how to see
all users connected to my solaris server
locally and remotely.

tq
0
Comment
Question by:maliksl4141
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +5
14 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 7128683
at your server type in:
who <enter>
0
 

Author Comment

by:maliksl4141
ID: 7129066
is that show all connected users
thru telnet,x11 etc.
what about users that connected
to my server thru application.

tq
0
 
LVL 38

Expert Comment

by:yuzh
ID: 7129154
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.

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 51

Expert Comment

by:ahoffmann
ID: 7129487
w, who, or rwho (if rhod is running) to show login sessions (telnet, rsh, ssh)
netstat -an|grep ESTABLISHED
  for any application
0
 
LVL 1

Expert Comment

by:msnr
ID: 7129517
what about if somebody is accessing my machine through nfs ..?


msnr
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7129534
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.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 7130864
It is very hard to tell who is using NFS.
0
 
LVL 1

Expert Comment

by:msnr
ID: 7131471
can fuser help us in this regard.?

msnr
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7131493
fuser will, if at all, only report local users
0
 
LVL 1

Expert Comment

by:m4rc
ID: 7150371
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/
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7150533
question is about users, not hosts
0
 

Expert Comment

by:ismahwati
ID: 7158578
i think i'll use ahoffman suggestion
for the time being.

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

0
 
LVL 21

Expert Comment

by:tfewster
ID: 8003348
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
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8065959
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question