<?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: telnetd disablement period in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642551#M44082</link>
    <description>Paula: &lt;BR /&gt;&lt;BR /&gt;I can't change the homedirs.  Many people have a hard enough time with `cd` :)&lt;BR /&gt;&lt;BR /&gt;I know that if I use the banner option people just won't read it, and then when I finally totally disable it my phone won't stop ringing.&lt;BR /&gt;&lt;BR /&gt;Well, I guess I'll just make sure I'm out of range that day :)&lt;BR /&gt;&lt;BR /&gt;-paul</description>
    <pubDate>Thu, 10 Jan 2002 21:03:54 GMT</pubDate>
    <dc:creator>Paul Mezzanini</dc:creator>
    <dc:date>2002-01-10T21:03:54Z</dc:date>
    <item>
      <title>telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642543#M44074</link>
      <description>While I'm posting my quesions I'll throw this one out to you guru's.  &lt;BR /&gt;&lt;BR /&gt;I'm in the process of disabling telnetd on my boxes in favor of ssh(d).  For this transitional period I would like it so that if a user tries to telnet to a box it will echo back a reply and then disconnect.  &lt;BR /&gt;&lt;BR /&gt;I just want to tell the users that telnet service is no longer available and they will need to ssh in (and they can get it from bla bla bla bla)&lt;BR /&gt;&lt;BR /&gt;I thought I could change inetd.conf's telnet line to point to echo "message goes here" or to a shell script that does the same thing.  It just dumps the connect without any echos.&lt;BR /&gt;&lt;BR /&gt;There has got to be an easy way to do this, I just don't know how :)&lt;BR /&gt;&lt;BR /&gt;thx&lt;BR /&gt;-paul</description>
      <pubDate>Thu, 10 Jan 2002 19:46:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642543#M44074</guid>
      <dc:creator>Paul Mezzanini</dc:creator>
      <dc:date>2002-01-10T19:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642544#M44075</link>
      <description>In your inetd.conf file add the -b option as follow to display a message:&lt;BR /&gt;&lt;BR /&gt;telnet       stream tcp nowait root /usr/lbin/telnetd  telnetd -b /etc/yourmessage&lt;BR /&gt;&lt;BR /&gt;where /etc/yourmessage is a banner file.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2002 19:57:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642544#M44075</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2002-01-10T19:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642545#M44076</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;Yes there is.&lt;BR /&gt;&lt;BR /&gt;One way I can think is to edit /etc/profile and keep a small scripts like this somewhere&lt;BR /&gt;in the file.&lt;BR /&gt;&lt;BR /&gt;clear&lt;BR /&gt;cat &amp;lt;&amp;lt; EOF&lt;BR /&gt;&lt;BR /&gt;Telnet has been disabled... Use ssh &lt;BR /&gt;with the following procedure..&lt;BR /&gt;bla..bla..bla...&lt;BR /&gt;&lt;BR /&gt;Good bye..&lt;BR /&gt;&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;sleep 5&lt;BR /&gt;exit &lt;BR /&gt;&lt;BR /&gt;This will display the message, waits for 5 secs and then disconnects the telnet session.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do the same thing on /etc/csh.login for csh shell users.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2002 19:58:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642545#M44076</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-10T19:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642546#M44077</link>
      <description>Hi,&lt;BR /&gt;You can use either file (/etc/issue or /etc/motd).&lt;BR /&gt;&lt;BR /&gt;Use the vi editor to open /etc/inetd.conf and change the lines below:&lt;BR /&gt;&lt;BR /&gt;   ftp      stream tcp nowait root /usr/lbin/ftpd&lt;BR /&gt;   telnet   stream tcp nowait root /usr/lbin/telnetd  telnetd -b /etc/motd&lt;BR /&gt;&lt;BR /&gt;-USA..&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2002 20:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642546#M44077</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-01-10T20:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642547#M44078</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;I'm not so sure that you can configure something like that. you can configure telnet banner that will be displayed whenever a user does a telnet to the system. Here is the link on how to set the relnet banner,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=2af75ab812ba0e21a0/screen=ckiDisplayDocument?docId=200000049635465" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=2af75ab812ba0e21a0/screen=ckiDisplayDocument?docId=200000049635465&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Now if you disable telnet login. this banner will not be displayed and so it will not solve your problem. you can use the /etc/inetd.sec to disable the telnet login. You can disable the telnet login from a single ip or multiple ip or from all ip's. Here is a link on how to set the same,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=d3100b3b145b392a25/screen=ckiDisplayDocument?docId=200000047669302" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=d3100b3b145b392a25/screen=ckiDisplayDocument?docId=200000047669302&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I can't say that this will display the banner if a telnet session is started from the ip address in the denied list. You'll have to give it a try.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2002 20:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642547#M44078</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-01-10T20:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642548#M44079</link>
      <description>Hi Paul&lt;BR /&gt;&lt;BR /&gt;Set up a no-telnet dir.&lt;BR /&gt;create a .profile with a message.&lt;BR /&gt;Now using etc &lt;BR /&gt;sleep x seconds&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;Set this as the default login dir in passwd.&lt;BR /&gt;&lt;BR /&gt;Quick and clean.&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Thu, 10 Jan 2002 20:06:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642548#M44079</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-01-10T20:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642549#M44080</link>
      <description>Man you guys reply fast... Let me see if I can knock some replies off before you post more :)  &lt;BR /&gt;&lt;BR /&gt;Wilfred and Uday:&lt;BR /&gt;&lt;BR /&gt;That isn't quite what I had in mind.  I want to display the message then disconnect the user.  That would display the message then let them continue on with the session.  This may need to be the route I've got to take anyway, but I would rather not.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sridhar:&lt;BR /&gt;&lt;BR /&gt;Wouldn't that also disable ssh connects and perhaps even console logins?  I can never remember which logins call which files.&lt;BR /&gt;&lt;BR /&gt;Paula: &lt;BR /&gt;&lt;BR /&gt;I'm not really sure I know what you mean.  Are you saying I should change everyone's homedir to a no-telnet one?  &lt;BR /&gt;&lt;BR /&gt;-paul</description>
      <pubDate>Thu, 10 Jan 2002 20:17:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642549#M44080</guid>
      <dc:creator>Paul Mezzanini</dc:creator>
      <dc:date>2002-01-10T20:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642550#M44081</link>
      <description>Hi Paul&lt;BR /&gt;&lt;BR /&gt;Yes on the home dirs if that is suitable.&lt;BR /&gt;&lt;BR /&gt;The other option is the banner file or motd.&lt;BR /&gt;&lt;BR /&gt;If you wish to keep home dirs then their own .profile could look for connection type by chasing down their pid and if telnet involved then warn then and force an exit.&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Thu, 10 Jan 2002 20:25:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642550#M44081</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-01-10T20:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642551#M44082</link>
      <description>Paula: &lt;BR /&gt;&lt;BR /&gt;I can't change the homedirs.  Many people have a hard enough time with `cd` :)&lt;BR /&gt;&lt;BR /&gt;I know that if I use the banner option people just won't read it, and then when I finally totally disable it my phone won't stop ringing.&lt;BR /&gt;&lt;BR /&gt;Well, I guess I'll just make sure I'm out of range that day :)&lt;BR /&gt;&lt;BR /&gt;-paul</description>
      <pubDate>Thu, 10 Jan 2002 21:03:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642551#M44082</guid>
      <dc:creator>Paul Mezzanini</dc:creator>
      <dc:date>2002-01-10T21:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642552#M44083</link>
      <description>you could do something like this:&lt;BR /&gt;&lt;BR /&gt;in /etc/profile&lt;BR /&gt;&lt;BR /&gt;TEL_COUNT=`ps | grep telnetd` # this will show what our patent of the shell is&lt;BR /&gt;trap 1 2 3 15&lt;BR /&gt;if [ $TEL_COUNT -eq 1 ]&lt;BR /&gt;then&lt;BR /&gt;  echo "Need to use SSH"&lt;BR /&gt;  sleep 5&lt;BR /&gt;fi</description>
      <pubDate>Thu, 10 Jan 2002 21:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642552#M44083</guid>
      <dc:creator>Jeff Machols</dc:creator>
      <dc:date>2002-01-10T21:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642553#M44084</link>
      <description>you could do something like this:&lt;BR /&gt;&lt;BR /&gt;in /etc/profile&lt;BR /&gt;&lt;BR /&gt;TEL_COUNT=`ps | grep telnetd` # this will show what our patent of the shell is&lt;BR /&gt;trap 1 2 3 15&lt;BR /&gt;if [ $TEL_COUNT -eq 1 ]&lt;BR /&gt;then&lt;BR /&gt;  echo "Need to use SSH"&lt;BR /&gt;  sleep 5&lt;BR /&gt;  exit&lt;BR /&gt;fi</description>
      <pubDate>Thu, 10 Jan 2002 21:11:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642553#M44084</guid>
      <dc:creator>Jeff Machols</dc:creator>
      <dc:date>2002-01-10T21:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642554#M44085</link>
      <description>Jeff:&lt;BR /&gt;&lt;BR /&gt;Lemme fire up my c240 test box and see if that works.&lt;BR /&gt;&lt;BR /&gt;It still isn't as graceful as I would hope, but its pretty damn close :)&lt;BR /&gt;&lt;BR /&gt;-paul</description>
      <pubDate>Thu, 10 Jan 2002 21:13:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642554#M44085</guid>
      <dc:creator>Paul Mezzanini</dc:creator>
      <dc:date>2002-01-10T21:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642555#M44086</link>
      <description>oops, I had a typo&lt;BR /&gt;&lt;BR /&gt;should be &lt;BR /&gt;&lt;BR /&gt;COUNT=`ps | grep telnetd | wc -l`&lt;BR /&gt;&lt;BR /&gt;I agree, it's not graceful, theres got to be a better way but I can't get one to work</description>
      <pubDate>Thu, 10 Jan 2002 21:15:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642555#M44086</guid>
      <dc:creator>Jeff Machols</dc:creator>
      <dc:date>2002-01-10T21:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642556#M44087</link>
      <description>Jeff:&lt;BR /&gt;&lt;BR /&gt;Just gotta do some tweaking of the message and spaces and then its all set.  &lt;BR /&gt;&lt;BR /&gt;I don't even think I will bother with the banner file... I will make what profile spewes out be descriptive enough.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;-paul</description>
      <pubDate>Thu, 10 Jan 2002 21:26:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642556#M44087</guid>
      <dc:creator>Paul Mezzanini</dc:creator>
      <dc:date>2002-01-10T21:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: telnetd disablement period</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642557#M44088</link>
      <description>How dump I was??..&lt;BR /&gt;&lt;BR /&gt;OK. You can modify the script as basically ssh session won't make use of telnetd.&lt;BR /&gt;&lt;BR /&gt;TTY=`tty|sed 's/\/dev\///'`                     &lt;BR /&gt;ps -ef|grep telnetd |grep $TTY |grep -v grep    &lt;BR /&gt;if [ $? = 0 ]                                   &lt;BR /&gt;then                                           clear &lt;BR /&gt;cat &amp;lt;&amp;lt; EOF                                      &lt;BR /&gt;Access is restricted to nly telnet...           &lt;BR /&gt;EOF                                             &lt;BR /&gt;sleep 5                                         &lt;BR /&gt;read                                            &lt;BR /&gt;exit                                            &lt;BR /&gt;fi                                              &lt;BR /&gt;See if this helps.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2002 21:30:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnetd-disablement-period/m-p/2642557#M44088</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-10T21:30:16Z</dc:date>
    </item>
  </channel>
</rss>

