rusers(1) User Commands rusers(1)NAME
rusers - who is logged in on remote machines
SYNOPSIS
rusers [-ahilu] host...
DESCRIPTION
The rusers command produces output similar to who(1), but for remote machines. The listing is in the order that responses are received, but
this order can be changed by specifying one of the options listed below.
The default is to print out the names of the users logged in. When the -l flag is given, additional information is printed for each user:
userid hostname:terminal login_date login_time idle_time login_host
If hostname and login host are the same value, the login_host field is not displayed. Likewise, if hostname is not idle, the idle_time is
not displayed.
A remote host will only respond if it is running the rusersd daemon, which may be started up from inetd(1M) or listen(1M).
In the absence of a name service, such as LDAP or NIS, rusers displays host names as numeric IP addresses.
OPTIONS -a Give a report for a machine even if no users are logged on.
-h Sort alphabetically by host name.
-i Sort by idle time.
-l Give a longer listing in the style of who(1).
-u Sort by number of users.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWrcmdc |
+-----------------------------+-----------------------------+
SEE ALSO who(1), inetd(1M), listen(1M), pmadm(1M), sacadm(1M), attributes(5)SunOS 5.11 7 Mar 2003 rusers(1)
Check Out this Related Man Page
rusers(3RPC) RPC Library Functions rusers(3RPC)NAME
rusers, rnusers - return information about users on remote machines
SYNOPSIS
cc [ flag ... ] file ... -lrpcsvc [ library ... ]
#include <rpc/rpc.h>
#include <rpcsvc/rusers.h>
enum clnt_stat rusers(char *host, struct utmpidlearr *up);
int rnusers(char *host);
PROTOCOL
/usr/include/rpcsvc/rusers.x
DESCRIPTION
These routines require that the rpc.rusersd(1M) daemon be configured and available on the remote system indicated by host. The rusers()
protocol is used to retrieve information about users logged in on the remote system.
rusers() fills the utmpidlearr structure with data about host, and returns 0 if successful. up must point to an allocated utmpidlearr
structure. If rusers() returns successful it will have allocated data structures within the up structure, which should be freed with
xdr_free(3NSL) when you no longer need them:
xdr_free(xdr_utimpidlearr, up);
On error, the returned value can be interpreted as an enum clnt_stat and can be displayed with clnt_perror(3NSL) or clnt_sperrno(3NSL).
See the header <rpcsvc/rusers.h> for a definition of struct utmpidlearr.
rnusers() returns the number of users logged on to host (-1 if it cannot determine that number).
The following XDR routines are available in librpcsvc:
xdr_utmpidlearr
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO rusers(1), rpc.rusersd(1M), rpc_clnt_calls(3NSL), xdr_free(3NSL), attributes(5)SunOS 5.11 30 Dec 1996 rusers(3RPC)
1. You are a network administrator. You have a script that uses rusers to tell you who is logged into your system on the network. You suspect that you are not getting all the client machines to report. Which daemon may not be running on some of the clients?
a. rpc.cmsd
b. in.fingerd
c. rc.sprayd... (1 Reply)
Hi All,
When we use the command "who" with option "-T" then all the users information who are logged in will bew displayed regarding whether they have set the message permission or not.
+ indicates permission is set.
- indicates permission is not set.
I observed ? for some users... (4 Replies)
Hello to all,
I'm new to shell programming and I am trying to come up with a way to find out if the output of the rusers command has more then one word since rusers would return the name of the server if no one has accessed it. Im having a hard time trying to use wc in a comparsion so that i... (2 Replies)
a script, cheer that prints its parameter as shown in the example below.
eg:
$ cheer U N I X
Give me a U!
U!
Give me a N!
N!
Give me a I!
I!
Give me a X!
X!
#!/bin/sh
for letter
do
echo "Give me a $letter!";echo "$letter!"
done
this is the code i used for the above script (2 Replies)
Hi
Please clarify me on:
a) How to use 'last' command to list users logged in during past few days. For example if i want to get the list of users logged in (and might be logged out after some time) from 15th Dec 2006 to 14th April 2007.
d) Which is the best option to use 'finger' or 'last'... (3 Replies)
Im "supporting" at least 2500 HP-UX workstations with CAD-related software with the B.11.11 build. I cant say anymore than that because of my companys sligtly paranoid security policy .
The last few days a new problem has arised from nowhere.
The problem is that users gets logged off when the... (5 Replies)
Hello everyone
Does anyone know, if there is a command that tells you who is logged in on remote host?
I'm ssh-ing as root to the remote host and then run whoami but that doesn't tells me who is logged in that particular computer instead shows my remote login. Is there a way to do that?... (2 Replies)
Hi,
I have a program running on HP-UX and it must checkwhether a user has already logged-in to another machine. The hostname of the other machine is known when the check has to be made.
Is there a way which this can be accomplished using C++ or Java? If not I could parse the output of a... (6 Replies)
We recently underwent a security audit and have a new requirement to not allow users to stay logged on overnight. In order to place this policy into effect i need a way to check for idle users and log them off. Is there any good way to enforce this policy in Solaris 10 and make it work in such a... (11 Replies)
How do I confirm if a user logged in, is remote or local? In the case if the user is remote, how to be sure what authentication/method is it using, like LDAP, NIS or other? (2 Replies)
Hi.
I'm trying to sort a list of items in a file alphabetically but starting from the letter 'X'. For instance if I had the following file;
test.txt
Z
A
T
W
Y
B
S
X
I would like the output to look like;
X
Y (8 Replies)