Solved

show all remote users

Posted on 2002-07-03
14
1,285 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
 
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating 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…
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now