Using HP-UX Internet Services (August 2003)

Distributing Files Using rdist
Setting Up remsh
Chapter 5 39
Setting Up remsh
rdist uses remsh as the mechanism for distributing files over the
network. In order to use rdist, you must set up remsh on all the remote
hosts. To set up remsh, perform the following steps on each of the remote
hosts:
1. Create an entry for the master host in the $HOME/.rhosts file of the
user who runs rdist.
For example, if rdist is run by the root user, create an entry for the
master host in the root’s .rhosts file (/.rhosts) on each remote
hosts.
NOTE On each remote host, ensure that the following entry is
uncommented in the /etc/inetd.conf file (that is, ensure that this
entry is not preceded by #).
shell stream tcp nowait root /usr/lbin/remshd remshd
2. Issue the following command to force inetd to reread its
configuration file:
/usr/sbin/inetd -c
Authentication for remsh and rexec Services
Pluggable Authentication Modules (PAM) for authentication is
supported on HP-UX. PAM support enables users who are not listed in
the /etc/passwd file to use the rexec and remsh services. It also enables
you to use authentication methods other than the standard UNIX
authentication mechanisms such as distributed Computing Environment
(DCE) integrated login and Kerberos.
The rexecd and remshd services use the authentication mechanism
specified in the OTHER directive of the /etc/pam.conf file. To use other
authentication methods, you must edit the /etc/pam.conf file.