LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-16-2006, 02:33 PM   #1
sajidmumtaz
Member
 
Registered: Jan 2006
Posts: 59

Rep: Reputation: 15
Checking how many users are connected on different solaris work stations


Hi !
We have sunfire V240 and its setting is like that differnt solaris work station only work when server is on. I mean the authentication is done by Sunfire.
Now user use these work stations remotely. I mean different users connect from there office pc to these work stations using there IP Address.
All i want is that to check how many users are connected on different work stations. Plz help me in that.
Regards.
Sajid.
 
Old 06-16-2006, 03:16 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by sajidmumtaz
Hi !
We have sunfire V240 and its setting is like that differnt solaris work station only work when server is on. I mean the authentication is done by Sunfire.
nis ? ldap ?
Quote:
Now user use these work stations remotely. I mean different users connect from there office pc to these work stations using there IP Address.
How do they connect to these workstations ? telnet/rlogin/ssh ? X11 ? Web ? other ?
Quote:
All i want is that to check how many users are connected on different work stations. Plz help me in that.
Start with running the "who" command on each WS.
 
Old 06-17-2006, 02:17 PM   #3
sajidmumtaz
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Hi !
Its NIS and they used ssh.

I use who command but it only displays list of that specific work station users. I want all users details connected to different work station.
Regards.
Sajid.
 
Old 06-17-2006, 05:03 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
If you insist wanting the information from a single machine, then enable rwho on each of the WS.
 
Old 06-19-2006, 12:04 AM   #5
mdhmi
Member
 
Registered: Dec 2005
Location: Detroit, Michigan
Distribution: Ubuntu
Posts: 86

Rep: Reputation: 15
w | wc -l

?
 
Old 06-19-2006, 07:54 AM   #6
sajidmumtaz
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 15
hi !
how can i enable rwho and wat this will do ? and mdhmi i didnt get wat u write
W | WC - |.

Regards.
Sajid.
 
Old 06-19-2006, 10:18 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by sajidmumtaz
how can i enable rwho
by launching it on each machine:
/usr/sbin/in.rwhod&
Quote:
and wat this will do ?
You'll get what you requested, unless I misunderstood it.
After in.rwhod is running on every machine, you can run the "rwho" command and see all logged-in users.
 
Old 06-19-2006, 10:34 AM   #8
sajidmumtaz
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 15
hi !
I run this command on my workstation. See the out put. Dont know wats the problem.
# /usr/sbin/in.rwhod
/var/spool/rwho: No such file or directory
# /usr/sbin/in.rwhod&
[1] 394
# /var/spool/rwho: No such file or directory
[1]+ Exit 1 /usr/sbin/in.rwhod
# rwho
/var/spool/rwho: No such file or directory

Regards.
Sajid.
 
Old 06-19-2006, 10:45 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
It looks very much the system wants you to create the /var/spool/rwho directory.

Code:
mkdir /var/spool/rwho
will do the trick ...
 
Old 06-19-2006, 11:06 AM   #10
sajidmumtaz
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 15
thx jlliagre . its working .
Now if i want that only root user can use rwho command not any normal user. So is it possible to do so ?
Regards.
Sajid.
 
Old 06-19-2006, 11:31 AM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Code:
chmod 0500 /usr/bin/rwho
 
Old 06-20-2006, 06:34 AM   #12
mdhmi
Member
 
Registered: Dec 2005
Location: Detroit, Michigan
Distribution: Ubuntu
Posts: 86

Rep: Reputation: 15
Why enable the evil "r" commands unnecessarily?

w | wc -l displays the number of users connected.

You can run who, finger, etc via ssh.

ssh <hostname> "w | wc -l"
 
Old 06-24-2006, 05:05 AM   #13
sajidmumtaz
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 15
hi !
i have to execute following command every morning on every workstation. I guess when power-off this deamon dont work.
/usr/sbin/in.rwhod &
so that i can check all users connected to workstations. what should i do that it work all time.

Regards.
sajid.
 
Old 06-24-2006, 09:30 AM   #14
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by sajidmumtaz
hi !
i have to execute following command every morning on every workstation. I guess when power-off this deamon dont work.
/usr/sbin/in.rwhod &
so that i can check all users connected to workstations. what should i do that it work all time.

Regards.
sajid.
To have this daemon start automatically at startup, you can create a rc script.

e.g.

/etc/rc2.d/S99rwho

which contains this single line:

/usr/sbin/in.rwhod
 
Old 06-27-2006, 05:31 AM   #15
mahabooba
Member
 
Registered: Dec 2005
Posts: 43

Rep: Reputation: 15
Please let me know the solution for the following scenario...please...
How we can mount the compilers(directory) to all users using NFS automout and NIS? .

The users home directory is: /home/x1
the compilers directory should mount as : /home/x1/compilers as a demand through NFS auto mount.

Thanks
Mahaboob
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I find connected users? adham1sa Linux - Networking 6 09-11-2009 03:44 PM
checking all users jitheshmurali Linux - General 1 05-30-2006 08:21 AM
find out which users are connected??? lemay_jeff Linux - Newbie 2 06-15-2004 10:14 AM
How to backspace when connected to solaris boxen jackpal Solaris / OpenSolaris 1 10-10-2003 12:45 PM
A7N266-VM Motherboard; Hang at "Checking Module Dependencies" if USB Device Connected jfxberns Linux - General 2 04-19-2003 11:12 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration