<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: disable telnet and allow su in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469798#M211488</link>
    <description>In the /etc/services file you can turn off the telnet protocol. Do an 'inetd -c' to have the config reread. &lt;BR /&gt;&lt;BR /&gt;This will not affect the ftp and rlogin and su.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 24 Jan 2005 13:09:10 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2005-01-24T13:09:10Z</dc:date>
    <item>
      <title>disable telnet and allow su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469797#M211487</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;i would like a help:&lt;BR /&gt;&lt;BR /&gt;i want to deny access by telnet, &lt;BR /&gt;but i want to allow access by su, ftp and rlogin.&lt;BR /&gt;&lt;BR /&gt;How can i proced this?&lt;BR /&gt;&lt;BR /&gt;Wait&lt;BR /&gt;&lt;BR /&gt;Fernando.</description>
      <pubDate>Mon, 24 Jan 2005 13:07:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469797#M211487</guid>
      <dc:creator>Fernando Jose P de Souz</dc:creator>
      <dc:date>2005-01-24T13:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: disable telnet and allow su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469798#M211488</link>
      <description>In the /etc/services file you can turn off the telnet protocol. Do an 'inetd -c' to have the config reread. &lt;BR /&gt;&lt;BR /&gt;This will not affect the ftp and rlogin and su.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jan 2005 13:09:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469798#M211488</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-01-24T13:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: disable telnet and allow su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469799#M211489</link>
      <description>i forgot a topic:&lt;BR /&gt;&lt;BR /&gt;i want to deny telnet just a one user.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jan 2005 13:13:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469799#M211489</guid>
      <dc:creator>Fernando Jose P de Souz</dc:creator>
      <dc:date>2005-01-24T13:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: disable telnet and allow su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469800#M211490</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;The file /etc/inetd.conf has the entry for telnet which can be commented out. You can re-read the inetd or you can do a kill -HUP on the inetd process. Only the commented process will be affected and others will still keep working.&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;&lt;BR /&gt;HGN</description>
      <pubDate>Mon, 24 Jan 2005 13:13:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469800#M211490</guid>
      <dc:creator>HGN</dc:creator>
      <dc:date>2005-01-24T13:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: disable telnet and allow su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469801#M211491</link>
      <description>put a hash in front of the line starting telnet in /etc/inetd.conf like in the following&lt;BR /&gt;#telnet       stream tcp nowait &lt;BR /&gt;root /usr/lbin/telnetd  telnetd&lt;BR /&gt;&lt;BR /&gt;possibly there's a second line for ipv6 starting with telnet6, but usually there isn't.&lt;BR /&gt;&lt;BR /&gt;after saving the file, restart inetd with inetd -c</description>
      <pubDate>Mon, 24 Jan 2005 13:15:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469801#M211491</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-01-24T13:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: disable telnet and allow su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469802#M211492</link>
      <description>Fernado: Ah just read Your second post - on other unices I did this using /etc/hosts.allow and /etc/hosts.deny, but it appears they are not there on hp-ux.&lt;BR /&gt;&lt;BR /&gt;the ugly way would be updating the users .profile (he MUST NOT own it after that change) to check for his terminal, if it's /dev/pty/*, an immediate logout must happen.&lt;BR /&gt;&lt;BR /&gt;But I wouldn't call this a good solution :(</description>
      <pubDate>Mon, 24 Jan 2005 13:19:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469802#M211492</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-01-24T13:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: disable telnet and allow su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469803#M211493</link>
      <description>How about turning off the telnet protocol from the users PC/workstation?&lt;BR /&gt;&lt;BR /&gt;If you remove the telnet from the user side then you won't need to do anything on the UNIX side.&lt;BR /&gt;&lt;BR /&gt;Note this is only for 1 user. If you have multiple users the another solution is called for.&lt;BR /&gt;&lt;BR /&gt;If you know the IP address of the user's location (and this does not change) then can do the hosts.deny and hosts.allow.&lt;BR /&gt;&lt;BR /&gt;Other options are available as well.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jan 2005 13:39:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469803#M211493</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-01-24T13:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: disable telnet and allow su</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469804#M211494</link>
      <description>There is n way to turn off telnet in inetd.conf for one user. This must be done in /var/adm/inetd.sec (hosts.deny equivalent). In there, you put the IP address of the problem system. NOTE: you cannot deny a specific user for telnet because telnet does not authenticate anyone--there is no way to predict what a user will type at the keyboard for a login, so if the bad user keeps changing IP addresses (ie, DHCP), then it's fairly easy: just add a lockout in /etc/profile:&lt;BR /&gt; &lt;BR /&gt;BADUSER=william&lt;BR /&gt;if [ $(id -un) = $BADUSER ]&lt;BR /&gt;then&lt;BR /&gt;exit&lt;BR /&gt;fi&lt;BR /&gt; &lt;BR /&gt;This requires that the bad user has /usr/bin/sh as their login shell (which is the default). You can easily test this by logging in as the bad user and see that it immediately exits.</description>
      <pubDate>Mon, 24 Jan 2005 16:14:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-telnet-and-allow-su/m-p/3469804#M211494</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-01-24T16:14:12Z</dc:date>
    </item>
  </channel>
</rss>

