Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

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 rpc.rusersd(8) daemon, which may be started up from inetd(8) under the service identifier svc:/network/rpc/rusers:default. This service is disabled by default on Solaris 10 systems with a secure by default configuration and on all Solaris 11 systems, and must be enabled by an administrator in order for a host to respond to rusers queries.

If no name can be found for a host via the hosts(5) name service, rusers displays a numeric IP address for the host.

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(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
network/legacy-remote-utilities
Interface Stability
Committed

See Also

who(1), attributes(7), inetd(8), rpc.rusersd(8)

History

The rusers command, including support for the options –a, –h, and –i, –l, and –u, has been present since the initial release of Solaris.