Perform the following steps to set up for rlogin.
- Set up security for the inetd and rlogind daemons.
See Steps for preparing the security program for daemons.
_______________________________________________________________
- Establish the connection between TCP/IP and z/OS® UNIX;
see z/OS Communications Server
for more information.
- Define port 513 in /etc/services (if this file is to be
used) or in the hlq.ETC.SERVICES data set, where hlq is the
prefix defined by DATASETPREFIX in the TCP/IP profile ("TCPIP" by
default). If /etc/services is defined, it will be used instead
of hlq.ETC.SERVICES. The format of the line is:
login 513/tcp
- IPL or re-IPL if needed.
- Start TCP/IP.
_______________________________________________________________
- Customize /etc/inetd.conf. It tells inetd how
to handle Internet service requests on Internet sockets. If you do
not have that file, copy it from /samples.
Example: cp /samples/inetd.conf /etc/inetd.conf
Make
these changes in the file:
- Change the user ID of the login server (which is rlogind)
to an ID with daemon authority.
login stream tcp nowait OMVSKERN /usr/sbin/rlogind rlogind -m
- Comment out any servers that are not needed by putting a # in
the first column.
_______________________________________________________________
- Start the inetd daemon. It is typically
started from /etc/rc, which is executed when the system
is initialized. Put these lines in /etc/rc, or uncomment them
out, as the case might be:
_BPX_JOBNAME='INETD' /usr/sbin/inetd /etc/inetd.conf&
Tips:- When you start inetd from the shell, you need
to do it from an OMVS session.
- If TCP/IP is not yet up, you will receive error messages, but inetd will
try again in a few minutes.
- To obtain debugging information, issue:
/usr/sbin/inetd -d
- To verify that inetd is listening on port 513,
issue the TSO NETSTAT INTERVAL command and check the output.
_______________________________________________________________
When you are done, you can issue the rlogin command to log
in from a remote UNIX system.