<?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: maximum simultaneous logins in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131289#M153103</link>
    <description>Try this.&lt;BR /&gt;I havent tested this.&lt;BR /&gt;&lt;BR /&gt;----&lt;BR /&gt;no_logins=`who|grep $LOGNAME|wc -l`&lt;BR /&gt;if [[ $no_logins -gt 4 ]]&lt;BR /&gt;then&lt;BR /&gt;    echo "you have exceeded the limit"&lt;BR /&gt;    exit&lt;BR /&gt;fi&lt;BR /&gt;-----&lt;BR /&gt;replace the 4 with the number you want&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy</description>
    <pubDate>Fri, 28 Nov 2003 15:13:10 GMT</pubDate>
    <dc:creator>Umapathy S</dc:creator>
    <dc:date>2003-11-28T15:13:10Z</dc:date>
    <item>
      <title>maximum simultaneous logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131284#M153098</link>
      <description>I need to configure the system with the limit of simultaneous logins for some users, how can i do it?&lt;BR /&gt;&lt;BR /&gt;Txs</description>
      <pubDate>Fri, 28 Nov 2003 14:36:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131284#M153098</guid>
      <dc:creator>Alejandro Anguiano</dc:creator>
      <dc:date>2003-11-28T14:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: maximum simultaneous logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131285#M153099</link>
      <description>Best way is to call a script from /etc/profile which will check the number of times that a user logged in using who command and if it exceeds the defined limit logout that user.&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Fri, 28 Nov 2003 14:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131285#M153099</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2003-11-28T14:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: maximum simultaneous logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131286#M153100</link>
      <description>tvm&lt;BR /&gt;do you have an script example&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Nov 2003 14:49:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131286#M153100</guid>
      <dc:creator>Alejandro Anguiano</dc:creator>
      <dc:date>2003-11-28T14:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: maximum simultaneous logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131287#M153101</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;this should help:-&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=52512" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=52512&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Fri, 28 Nov 2003 15:04:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131287#M153101</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2003-11-28T15:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: maximum simultaneous logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131288#M153102</link>
      <description>&lt;BR /&gt;If you try 'limit login' as search string in the forum header, you'll get several useful earlier answers. Notably:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=98655" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=98655&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Nov 2003 15:12:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131288#M153102</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2003-11-28T15:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: maximum simultaneous logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131289#M153103</link>
      <description>Try this.&lt;BR /&gt;I havent tested this.&lt;BR /&gt;&lt;BR /&gt;----&lt;BR /&gt;no_logins=`who|grep $LOGNAME|wc -l`&lt;BR /&gt;if [[ $no_logins -gt 4 ]]&lt;BR /&gt;then&lt;BR /&gt;    echo "you have exceeded the limit"&lt;BR /&gt;    exit&lt;BR /&gt;fi&lt;BR /&gt;-----&lt;BR /&gt;replace the 4 with the number you want&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy</description>
      <pubDate>Fri, 28 Nov 2003 15:13:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131289#M153103</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-11-28T15:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: maximum simultaneous logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131290#M153104</link>
      <description>If you are using KSH then add the following lines in /etc/profile,&lt;BR /&gt;&lt;BR /&gt;MAXINST=5&lt;BR /&gt;CURRINST=$(who | awk -F " "  '{print $1 }' | grep `whoami` |wc -l)&lt;BR /&gt;if [ $CURRINST -gt $MAXINST ]&lt;BR /&gt;then&lt;BR /&gt;echo "You have exceeded the login limit"&lt;BR /&gt;exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;You can also customize the MAXINST variable for individual users by adding these lines in .profile of individual users.&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Fri, 28 Nov 2003 15:33:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131290#M153104</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2003-11-28T15:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: maximum simultaneous logins</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131291#M153105</link>
      <description>If you want to limit every user (except root) to a maximum number of logins, use the /etc/default/security file and add the line:&lt;BR /&gt; &lt;BR /&gt;NUMBER_OF_LOGINS_ALLOWED=4&lt;BR /&gt; &lt;BR /&gt;and now no more than 4 logins total for every user is allowed. To have random limits based on the user ID, you'll need to use the /etc/profile and /etc/csh.login code to manage each user's limit by exiting when the limit has been exceeded. You'll likely need the patch PHCO_27721 for 11.0 and PHCO_27694 for 11.11 (both will patch the /usr/bin/login file only, and do not require a reboot)</description>
      <pubDate>Fri, 28 Nov 2003 15:47:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/maximum-simultaneous-logins/m-p/3131291#M153105</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-11-28T15:47:19Z</dc:date>
    </item>
  </channel>
</rss>

