Solved

show all remote users

Posted on 2002-07-03
14
1,288 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
  • 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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 20

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

832 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