<?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: Telnet session in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467367#M211100</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;user will not get any info unless he/she login</description>
    <pubDate>Thu, 20 Jan 2005 06:12:16 GMT</pubDate>
    <dc:creator>Ravi_8</dc:creator>
    <dc:date>2005-01-20T06:12:16Z</dc:date>
    <item>
      <title>Telnet session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467365#M211098</link>
      <description>We have setup the max. no.of user telnet login (in our case is 70)  at "/etc/xinetd.d/telnet" to control the telnet login , now,  if the telnet session over 70 , then the system will not ask for login and no any message will display to the screen ( look like system hang ) , if I want when the 71th user login to the system , the user will see the existing logging user list ( eg. userid , login time , ip address of the 70 users ) , so that they know who are logging in the system , could suggest what can I do ? do I need to modify any file , could suggest how to modify it ? very thx in advance.</description>
      <pubDate>Thu, 20 Jan 2005 05:40:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467365#M211098</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2005-01-20T05:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467366#M211099</link>
      <description>While you stop user at inetd level, session will not be established so user won't be able to get any info from server.&lt;BR /&gt;&lt;BR /&gt;What you can do is to allow a little more (75?) and add a script in /etc/profile to display sessions and disconnect when max is reached :&lt;BR /&gt;&lt;BR /&gt;sessionCount=$(who|wc -l)&lt;BR /&gt;if [ $sessionCount -gt 70 ] ; then&lt;BR /&gt;  who -u&lt;BR /&gt;  echo "Unable to login (max session reached)"&lt;BR /&gt;  exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;2 points :&lt;BR /&gt;. If users use windows telnet, window may close on connection end, so that they can't se the list. It may be better to use cmd, then telnet.&lt;BR /&gt;. By setting a max session in inetd, you will also prevent root login. That may be a bad thing for root not to be able to connect. Using the provided script for all but root with a max session to 75 will let root connect in any case.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2005 06:03:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467366#M211099</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2005-01-20T06:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467367#M211100</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;user will not get any info unless he/she login</description>
      <pubDate>Thu, 20 Jan 2005 06:12:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467367#M211100</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2005-01-20T06:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467368#M211101</link>
      <description>thx Fred Ruffet ,&lt;BR /&gt;&lt;BR /&gt;I think you are right , but after the user get the message , the user still can login  into the system , how to logout the user after they see the message and then press "enter" key ? thx.</description>
      <pubDate>Thu, 20 Jan 2005 07:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467368#M211101</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2005-01-20T07:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467369#M211102</link>
      <description>"exit" command should exit the shell. If you want to pause before exit, just add a "read a" before exit.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2005 08:10:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467369#M211102</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2005-01-20T08:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467370#M211103</link>
      <description>thx reply ,  the "exit" function is ok , if I want to prompt the user to press the "space bar" to the next logging on user list screen and press "enter" key to exit , could suggest what can I do ? thx in advance.</description>
      <pubDate>Thu, 20 Jan 2005 09:42:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467370#M211103</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2005-01-20T09:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467371#M211104</link>
      <description>thx replies , &lt;BR /&gt;&lt;BR /&gt;the "read a" is work fine , it will exit after press enter , may I have more requirement , because the system will display the list of 70 users , but one screen can't display all users ( about only 23 users will be display on one screen ) , is it possible that it display first screen then wait the user press key to next screen ( another 23 users ) until all users listed , could suggest what can I do ? thx</description>
      <pubDate>Fri, 21 Jan 2005 03:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467371#M211104</guid>
      <dc:creator>peterchu</dc:creator>
      <dc:date>2005-01-21T03:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467372#M211105</link>
      <description>I would have just used the 'sleep xx' command so screen is seen for 'xx' seconds then automatically 'logout'. Some users don't comprehend that they are blocking others so you may hit your 75 max telnet sessions limit.&lt;BR /&gt;&lt;BR /&gt;consider using 'who -q' to have a quick and short list of connected users.&lt;BR /&gt;&lt;BR /&gt;else, 'who -u | more' may also give a page by page display, needing the user to hit a key to see all the pages. This may put the never-ending connections again.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Ahmed Rahal</description>
      <pubDate>Fri, 21 Jan 2005 07:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467372#M211105</guid>
      <dc:creator>Ahmed RAHAL</dc:creator>
      <dc:date>2005-01-21T07:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467373#M211106</link>
      <description>btw,&lt;BR /&gt;you may skip session test if user is root (or any user below 100, usually, no real users):&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;if [ `id -u` -ge 100 ]; then&lt;BR /&gt;  sessionCount=$(who|wc -l)&lt;BR /&gt;  if [ $sessionCount -gt 70 ] ; then&lt;BR /&gt;  who -q&lt;BR /&gt;  echo "Unable to login (max session reached)"&lt;BR /&gt;  sleep 30&lt;BR /&gt;  logout&lt;BR /&gt;  fi&lt;BR /&gt;fi&lt;BR /&gt;---&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jan 2005 07:54:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467373#M211106</guid>
      <dc:creator>Ahmed RAHAL</dc:creator>
      <dc:date>2005-01-21T07:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Telnet session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467374#M211107</link>
      <description>To have a page per page display, use this :&lt;BR /&gt;who -u | more&lt;BR /&gt;more wait for the user to press enter or space to scroll respectively one line or one page from input.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jan 2005 08:16:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/telnet-session/m-p/3467374#M211107</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2005-01-21T08:16:47Z</dc:date>
    </item>
  </channel>
</rss>

