NFS Services Administrator's Guide

Configuring and Using the Remote Execution Facility (REX)
Configuring REX
Chapter 7 283
Configuring REX
This section tells you how to set up REX clients and REX servers. It also
explains how to configure added security for REX servers and how to
configure logging for the rexd daemon.
To Configure REX
1. Make sure all the hosts to which users need access are listed in your
hosts database (BIND, NIS, or /etc/hosts).
2. Make sure users have accounts on all the hosts they need to use.
Make sure the user ID for each user is the same on all hosts where
that user has an account.
If you are using NIS or NIS+, and users do not need access to any
hosts outside your NIS domain or NIS+ namespace, this step is not
necessary. With NIS and NIS+, user accounts are administered
centrally on the master server, and all hosts have access to the same
user information. See “Configuring and Administering NIS” on
page 145 for instructions on setting up NIS. See “Configuring and
Administering NIS+” on page 199 for instructions on setting up
NIS+.
3. Make sure all REX clients (hosts from which users will issue the on
command) are configured as NFS servers. See “Configuring and
Administering an NFS Server” on page 26.
4. Make sure users’ home directories on all REX clients are exported to
REX servers (available to be mounted with NFS). See “To Make
Directories Available to NFS Clients (Export Directories)” on
page 26.
5. Make sure all REX servers (hosts where the rexd daemon will run)
are configured as NFS clients. See “Configuring and Administering
an NFS Client” on page 36.
6. Use a text editor to uncomment the following line in the
/etc/inetd.conf file, which starts rexd:
rpc stream tcp nowait root /usr/sbin/rpc.rexd 100017 1
rpc.rexd