LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Checking how many users are connected on different solaris work stations (https://www.linuxquestions.org/questions/solaris-opensolaris-20/checking-how-many-users-are-connected-on-different-solaris-work-stations-455476/)

sajidmumtaz 06-16-2006 02:33 PM

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.

jlliagre 06-16-2006 03:16 PM

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.

sajidmumtaz 06-17-2006 02:17 PM

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.

jlliagre 06-17-2006 05:03 PM

If you insist wanting the information from a single machine, then enable rwho on each of the WS.

mdhmi 06-19-2006 12:04 AM

w | wc -l

?

sajidmumtaz 06-19-2006 07:54 AM

hi !
how can i enable rwho and wat this will do ? and mdhmi i didnt get wat u write
W | WC - |.

Regards.
Sajid.

jlliagre 06-19-2006 10:18 AM

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.

sajidmumtaz 06-19-2006 10:34 AM

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.

jlliagre 06-19-2006 10:45 AM

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

Code:

mkdir /var/spool/rwho
will do the trick ...

sajidmumtaz 06-19-2006 11:06 AM

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.

jlliagre 06-19-2006 11:31 AM

Code:

chmod 0500 /usr/bin/rwho

mdhmi 06-20-2006 06:34 AM

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"

sajidmumtaz 06-24-2006 05:05 AM

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.

jlliagre 06-24-2006 09:30 AM

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

mahabooba 06-27-2006 05:31 AM

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


All times are GMT -5. The time now is 06:10 AM.