<?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: control user login in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/control-user-login/m-p/3672388#M243971</link>
    <description>Yes surely you can with /etc/profile file scripting. &lt;BR /&gt;&lt;BR /&gt;--- /etc/profile ---&lt;BR /&gt;ps | grep -q 'telnet'&lt;BR /&gt;if [[ $? -eq 0 ]]&lt;BR /&gt;then&lt;BR /&gt;  if [[ $(who | wc -l) -ge 60 &amp;amp;&amp;amp; ${LOGNAME} != "edp_usr" ]]&lt;BR /&gt;  then&lt;BR /&gt;     echo "Telnet session limit is reached. Try after some time"&lt;BR /&gt;     sleep 1&lt;BR /&gt;     exit 1&lt;BR /&gt; elif [[ $(who | wc -l) -gt 70 &amp;amp;&amp;amp; ${LOGNAME} = "edp_usr" ]]&lt;BR /&gt; then&lt;BR /&gt;    echo "Telnet licensed sessions limit is reached - 70. Try later"&lt;BR /&gt;    sleep 2&lt;BR /&gt;    exit 1&lt;BR /&gt;  fi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Save this.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   &lt;BR /&gt;</description>
    <pubDate>Wed, 16 Nov 2005 01:33:31 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2005-11-16T01:33:31Z</dc:date>
    <item>
      <title>control user login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-user-login/m-p/3672385#M243968</link>
      <description>In my server , we only allow 70 telnet session to my system , to control the system resource , if I want to assign 10 telnet session out of these 70 only for a specific login id ( eg. edp_usr ), that mean all users ( except edp_usr ) can only use max. 60 telnet session , another 10 telnet session only reserve for edp_usr , is it possible ? thx.</description>
      <pubDate>Tue, 15 Nov 2005 23:14:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-user-login/m-p/3672385#M243968</guid>
      <dc:creator>hanyyu1</dc:creator>
      <dc:date>2005-11-15T23:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: control user login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-user-login/m-p/3672386#M243969</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I would like to put a checking on the . profile of that particular user to verify how many users with that particlar username exists, if it is moe than 10 echo a messeage on the screen saying that "Cannot login since login numbers exceeded" and quit.&lt;BR /&gt;&lt;BR /&gt;Something like  who -u|awk '{print $1}' and check&lt;BR /&gt;&lt;BR /&gt;Will that do?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;CS</description>
      <pubDate>Tue, 15 Nov 2005 23:53:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-user-login/m-p/3672386#M243969</guid>
      <dc:creator>saju_2</dc:creator>
      <dc:date>2005-11-15T23:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: control user login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-user-login/m-p/3672387#M243970</link>
      <description>thx r suggestion ,&lt;BR /&gt;&lt;BR /&gt;I understand your mean but actually I also want to control the normal user can only use 60 telnet session , ( even the edp_usr is not logging on , the common user can use only max. of 60 telnet , because only 60 application license is available ) , is it possible ? thx.</description>
      <pubDate>Wed, 16 Nov 2005 01:20:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-user-login/m-p/3672387#M243970</guid>
      <dc:creator>hanyyu1</dc:creator>
      <dc:date>2005-11-16T01:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: control user login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/control-user-login/m-p/3672388#M243971</link>
      <description>Yes surely you can with /etc/profile file scripting. &lt;BR /&gt;&lt;BR /&gt;--- /etc/profile ---&lt;BR /&gt;ps | grep -q 'telnet'&lt;BR /&gt;if [[ $? -eq 0 ]]&lt;BR /&gt;then&lt;BR /&gt;  if [[ $(who | wc -l) -ge 60 &amp;amp;&amp;amp; ${LOGNAME} != "edp_usr" ]]&lt;BR /&gt;  then&lt;BR /&gt;     echo "Telnet session limit is reached. Try after some time"&lt;BR /&gt;     sleep 1&lt;BR /&gt;     exit 1&lt;BR /&gt; elif [[ $(who | wc -l) -gt 70 &amp;amp;&amp;amp; ${LOGNAME} = "edp_usr" ]]&lt;BR /&gt; then&lt;BR /&gt;    echo "Telnet licensed sessions limit is reached - 70. Try later"&lt;BR /&gt;    sleep 2&lt;BR /&gt;    exit 1&lt;BR /&gt;  fi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Save this.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   &lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2005 01:33:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/control-user-login/m-p/3672388#M243971</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-16T01:33:31Z</dc:date>
    </item>
  </channel>
</rss>

