<?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 Limit amount of logins per user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534602#M890301</link>
    <description>What limits the amount of logins per user?</description>
    <pubDate>Wed, 30 May 2001 16:00:15 GMT</pubDate>
    <dc:creator>Jody Bennett</dc:creator>
    <dc:date>2001-05-30T16:00:15Z</dc:date>
    <item>
      <title>Limit amount of logins per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534602#M890301</link>
      <description>What limits the amount of logins per user?</description>
      <pubDate>Wed, 30 May 2001 16:00:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534602#M890301</guid>
      <dc:creator>Jody Bennett</dc:creator>
      <dc:date>2001-05-30T16:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Limit amount of logins per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534603#M890302</link>
      <description>Jody, &lt;BR /&gt;There are two kernel parameters that might be creating problem for you:&lt;BR /&gt;&lt;BR /&gt;nstrtel  - number of opened telnet sessions &lt;BR /&gt;&lt;BR /&gt;npty   - number of pseudoterminal &lt;BR /&gt;&lt;BR /&gt;Richard&lt;BR /&gt;</description>
      <pubDate>Wed, 30 May 2001 16:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534603#M890302</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2001-05-30T16:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Limit amount of logins per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534604#M890303</link>
      <description>Jody, sorry - I didn't read your posting properly - not sure how you do that per user...&lt;BR /&gt;Richard</description>
      <pubDate>Wed, 30 May 2001 16:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534604#M890303</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2001-05-30T16:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Limit amount of logins per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534605#M890304</link>
      <description>nstrtel &lt;BR /&gt;nstrtel specifies the number of telnet device files that the kernel can support for incoming telnet sessions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Acceptable Values:&lt;BR /&gt;Minimum &lt;BR /&gt;60 &lt;BR /&gt;Maximum &lt;BR /&gt;Default &lt;BR /&gt;60&lt;BR /&gt;&lt;BR /&gt;npty specifies the maximum number of pseudo-tty data structures that are available on the system.&lt;BR /&gt;&lt;BR /&gt;Acceptable Values:&lt;BR /&gt;Minimum &lt;BR /&gt;1 &lt;BR /&gt;Maximum &lt;BR /&gt;Memory limited &lt;BR /&gt;Default &lt;BR /&gt;60 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;A user 60 logins.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 May 2001 17:40:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534605#M890304</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-05-30T17:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Limit amount of logins per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534606#M890305</link>
      <description>Jody,&lt;BR /&gt;&lt;BR /&gt;I don't thinkthere is a way to limit the number of times a user can log on to the system.  Something you could possibly do is add something a one of the users . files or the /etc/profile or something that when they login, it counts the number of times they are already logged in, and if they exceed that number, it doesn't let them log in.  &lt;BR /&gt;&lt;BR /&gt;Something like this may work:&lt;BR /&gt;&lt;BR /&gt;user=`echo $LOGNAME`&lt;BR /&gt;user_count=`who | grep $user | wc -l`&lt;BR /&gt;if ( $user_count &amp;gt; 2 ) then&lt;BR /&gt;   echo "You have exceeded the max number of logins allowed&lt;BR /&gt;   exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;I can't guarantee that the syntax is absolutely correct, but you get the idea.</description>
      <pubDate>Wed, 30 May 2001 17:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534606#M890305</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-05-30T17:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Limit amount of logins per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534607#M890306</link>
      <description>Hi Jody,&lt;BR /&gt;&lt;BR /&gt;Patrick is correct there is no way to limit the logins per user. You could make the entries in the .profiles that he suggests but ,of course, your users could easily edit them and thus out bushwhack you. You could also&lt;BR /&gt;do the changes in /etc/profile which should only be writable by root; but, be very careful that nothing you do alters non-regular users (e.g. root).&lt;BR /&gt;&lt;BR /&gt;  The one time I had to do this for real, I had to code a c replacement for login. Fortunately, there were no graphical logins or a dtlogin replacement would have also been required. This is not an execise for the faint of heart but it is doable.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Wed, 30 May 2001 18:15:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534607#M890306</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-05-30T18:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Limit amount of logins per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534608#M890307</link>
      <description>Add this to /etc/profile.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Check for multiple logins&lt;BR /&gt;&lt;BR /&gt;if [ -x "/usr/bin/whoami" ]&lt;BR /&gt;then&lt;BR /&gt;        WHOAMI=`whoami`&lt;BR /&gt;&lt;BR /&gt;        if [ "$WHOAMI" = "root" -o         then&lt;BR /&gt;                :&lt;BR /&gt;        else&lt;BR /&gt;&lt;BR /&gt;#                 if [ `who | grep ^$WHOAMI | wc -l` -gt 1 ]&lt;BR /&gt;                 if [ `who | grep -c "^$WHOAMI"` -gt 1 ]&lt;BR /&gt;                 then&lt;BR /&gt;                        echo "\n\n          W A R N I N G !"&lt;BR /&gt;                        echo "\nYou can't log in now because someone is logged"&lt;BR /&gt;                        echo "in with this user ID.  If you think that"&lt;BR /&gt;                        echo "someone is using your account, please contact"&lt;BR /&gt;                        echo "the Shift Manager immediately....\n\n"&lt;BR /&gt;                        sleep 20&lt;BR /&gt;                        exit 1&lt;BR /&gt;                 fi&lt;BR /&gt;        fi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;######&lt;BR /&gt;&lt;BR /&gt;You can add other whoami's.</description>
      <pubDate>Wed, 30 May 2001 20:54:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534608#M890307</guid>
      <dc:creator>Greg Conn</dc:creator>
      <dc:date>2001-05-30T20:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Limit amount of logins per user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534609#M890308</link>
      <description>Hi Jody,&lt;BR /&gt;&lt;BR /&gt;I had a similar problem a few years back and it &lt;BR /&gt;was solved by adding a login step. This entailed&lt;BR /&gt;creating a script in between /etc/profile and&lt;BR /&gt;$HOME/.profile. I have attached a copy of it&lt;BR /&gt;for you. The script checked to see what class&lt;BR /&gt;of user you were before continuing or logging &lt;BR /&gt;you out. &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Michael</description>
      <pubDate>Wed, 30 May 2001 23:05:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limit-amount-of-logins-per-user/m-p/2534609#M890308</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-05-30T23:05:38Z</dc:date>
    </item>
  </channel>
</rss>

