<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/styles/XMLStylesDoc_xhtml11_en.xsl"?><!DOCTYPE document SYSTEM "/schemas/XMLStyles10.dtd">
<document xmlns="http://XMLStyles.com/namespaces/styles" xmlns:xst="http://XMLStyles.com/namespaces/styles" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:date="http://exslt.org/dates-and-times">
   <noxml>
      <p xmlns="http://www.w3.org/1999/xhtml"/>
      <!-- You are viewing the source.  The following message should be ignored if you did "View Source" in your browser. -->
      <p xmlns="http://www.w3.org/1999/xhtml">
ATTENTION: XML WEB PAGES NOT SUPPORTED
   If you see this message, your current browser does not support the
   1999 XSLT 1.0 (or later) standard for XML web pages such as this one.
   Please upgrade your browser to a newer version
   that supports 1999 or later standards such as:
      Mozilla Firefox version 1.0.2 or later (GetFirefox -&gt; http://www.GetFirefox.com/)
      Netscape version 8 or later
      Safari version 1.3 or later
      Opera version 9 or later
      Microsoft Internet Explorer (MSIE) version 5 or later
   For further assistance, contact the software vendor for your browser.
   To go to the X<!-- extended HTML -->HTML version of this page click the following link:
<a href="index.html">index.html</a>
      </p>
      <p xmlns="http://www.w3.org/1999/xhtml">&#160;</p>
   </noxml>
   <path>/computers/os/ibmzos/uss/</path>
   <site>How To Guides</site>
   <logo xlink:type="simple" xlink:href="/images/howtohome.jpg" media="screen" width="240" height="34">How To Guides</logo>
   <logo xlink:type="simple" xlink:href="/images/howtoguides.jpg" media="print" width="240" height="34">How To Guides</logo>
   <logo xlink:type="simple" xlink:href="/images/howtoguidesmobile.jpg" media="handheld" width="150" height="17">How To Guides</logo>
   <navigation where="sections">
      <label>How To Guides</label>
      <link xlink:type="simple" xlink:href="/business/index.xml">Business</link>
      <link xlink:type="simple" xlink:href="/computers/index.xml">Computers</link>
      <link xlink:type="simple" xlink:href="/computers/databases/index.xml">Databases</link>
      <link xlink:type="simple" xlink:href="/internet/index.xml">Internet</link>
      <link xlink:type="simple" xlink:href="/mobile/index.xml">Mobile</link>
      <link xlink:type="simple" xlink:href="/money/index.xml">Money</link>
      <link xlink:type="simple" xlink:href="/movies/index.xml">Movies</link>
      <link xlink:type="simple" xlink:href="/computers/os/index.xml">Operating Systems</link>
   </navigation>
   <navigation where="up">
      <link xlink:type="simple" xlink:href="../../../">Computers</link>
      <link xlink:type="simple" xlink:href="../../">Operating Systems</link>
      <link xlink:type="simple" xlink:href="../">IBM z/OS</link>
   </navigation>
   <navigation where="subsections">
      <link xlink:type="simple" xlink:href="/computers/os/unix/">UNIX</link>
      <link xlink:type="simple" xlink:href="/computers/os/macosx/">Mac OS X</link>
      <link xlink:type="simple" xlink:href="/computers/os/ibmzos/">IBM z/OS</link>
      <link xlink:type="simple" xlink:href="/computers/os/ibmzos/tcpip/">TCP/IP on z/OS</link>
      <link xlink:type="simple" xlink:href="/computers/os/ibmzos/vtam/">VTAM</link>
      <link xlink:type="simple" xlink:href="index.xml">z/OS UNIX</link>
      <link xlink:type="simple" xlink:href="/computers/os/ibmzos/linux/">z/OS LINUX</link>
      <link xlink:type="simple" xlink:href="/computers/os/windows/">Windows</link>
   </navigation>
   <section id="body" type="body">
      <pages name="index">
         <title>How To Guides for UNIX System Services on z/OS</title>
         <label>z/OS UNIX</label>
         <navigation where="pages">
            <label>z/OS UNIX</label>
            <link xlink:type="simple" xlink:href="index.xml">Summary</link>
            <link xlink:type="simple" xlink:href="mvscmds.xml">MVS Commands</link>
            <link xlink:type="simple" xlink:href="syslogs.xml">Log Files</link>
            <link xlink:type="simple" xlink:href="telnet.xml">Telnet</link>
         </navigation>
         <h1>How To Guides for UNIX System Services on z/OS</h1>
         <page id="N100E7" name="telnet">
            <title>Connecting to UNIX on z/OS via Telnet</title>
            <label>Telnet</label>
            <description>How to connect to UNIX on z/OS via Telnet.</description>
            <navigation where="up">
               <link xlink:type="simple" xlink:href="index.xml">UNIX Services</link>
            </navigation>
            <subpage id="N100F5" name="unixuser">
               <label>UNIX User</label>
               <h1>Set up the user ID</h1>
               <p>In the installed security package, the user ID should be configured with a UNIX UID and a home directory.
                  Under the covers, UNIX file systems identify users by their UID (not their username), so for
                  any particular user, the same unique UID should be used on all systems that the user logs into.
                  The home directory, usually <span class="nobr">
                     <code>/home/<i>username</i>
                     </code>,</span> should
                  be located in a file system that is separate from operating system files, so that users home
                  directories can be carried forward whenever the OS file systems are replaced with new versions.
               </p>
            </subpage>
            <subpage id="N10106" name="inetd">
               <label>inetd</label>
               <h1 id="inetdprocess">Make sure the <code>inetd</code> process is running</h1>
               <p>If you have access to all processes on the system, the following command
                  can be used to determine if the <code>inetd</code> process is running:
               </p>
               <blockcode>
                  <l>ps -ef | grep inetd</l>
               </blockcode>
               <p>The <link xlink:type="simple" xlink:href="mvscmds.xml#omvsa">DISPLAY OMVS,A command</link> can also be used.
               </p>
               <h1>Set up inetd to start Telnet processes</h1>
               <p>If the inetd process is not running, or if you get a
                  <span class="outlined">Connection refused</span> error, check the configuration.
               </p>
               <ol>
                  <li>Make sure Telnet is defined in the <code>/etc/services</code> file:
                     <blockcode>
                        <l>grep -i telnet /etc/services</l>
                        <l class="output">otelnet 2222/tcp</l>
                     </blockcode>
                  </li>
                  <li>Make sure Telnet is defined in the <code>/etc/inetd.conf</code> file:
                     <blockcode>
                        <l>grep -i telnet /etc/inetd.conf</l>
                        <l class="output">otelnet stream tcp nowait OMVSKERN /usr/sbin/otelnetd otelnetd -l</l>
                     </blockcode>
                     After changing <code>inetd.conf</code>, simply
                     <link xlink:type="simple" xlink:href="/os/unix/commands/processes.xml#kill">kill</link> the
                     <link xlink:type="simple" xlink:href="#inetdprocess">inetd process</link>
                     to restart it with the changes to the <code>inetd.conf</code> file.
                     If it does not restart automatically, it can be restarted manually.
                  </li>
                  <li>Make sure <code>inetd</code> is configured to start automatically when the system is IPLed:
                     <blockcode>
                        <l>grep -i inetd /etc/rc</l>
                        <l class="output">_BPX_JOBNAME='INETD' /usr/sbin/inetd /etc/inetd.conf &amp;</l>
                     </blockcode>
                  </li>
               </ol>
               <p>
                  <code>inetd</code> can also be started by entering the command in <code>/etc/rc</code> on the command line.
               </p>
            </subpage>
            <subpage id="N10161" name="telnetopts">
               <label>telnet</label>
               <h1>Set up the Telnet connection</h1>
               <p>When configuring the Telnet connection, use the following options:
                  <ul>
                     <li>Use a Telnet connection (not TN3270).</li>
                     <li>Make sure the connection is configured to connect to the Telnet port, not TN3270.
                        Since the mainframe uses the default Telnet port number 23 for TN3270 connections,
                        the port number for a Telnet connection to UNIX will probably be something else.
                        The following command can be used to determine the port number that needs to be used:
                        <blockcode>
                           <l>grep -i telnet /etc/services</l>
                           <l class="output">otelnet 2222/tcp</l>
                        </blockcode>
                        In the example above, <code>2222</code> is the Telnet port number.
                     </li>
                     <li>Set up the connection for emulation of a DEC VT220 or ANSI terminal.
                        You can verify that the type of terminal recognized by the server using:
                        <blockcode>
                           <l>echo $TERM</l>
                           <l class="output">vt220</l>
                        </blockcode>
                     </li>
                     <li>Configure the keyboard options so that the backspace key sends
                        <span class="outlined">Backspace</span>, not <span class="outlined">Delete</span>.
                     </li>
                     <li>Turn on the terminal "autowrap" option so that output
                        automatically wraps at the right margin of the screen.
                     </li>
                  </ul>
               </p>
            </subpage>
            <updated local="2006-10-17">Tuesday October 17, 2006</updated>
         </page>
      </pages>
   </section>
   <copyright>Copyright © 2006 How To Guides .com. Alteration of content, including addition of any function such as hypertext links or pop-up advertising, or interference with the hypertext links or other functions of this site is expressly prohibited.</copyright>
   <disclaimer>All information, links, forms, applications and other items on this site or obtained from it are provided <b>AS IS</b>, WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</disclaimer>
   <ids urchin="UA-779578-2"/>
</document>

