<?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: Limit user connection in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/limit-user-connection/m-p/2532625#M869362</link>
    <description>The only thing I can think of is to put something into one of the . files (.cshrc, .login, .profile, etc.) for each user and check to see if they are already logged in, if so, how many times.  If they are logged in too many times, then tell them they aren't allowed any more logins and do an exit.&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;user=`echo $LOGNAME`&lt;BR /&gt;num_logins=`who | grep $user | wc -l`&lt;BR /&gt;&lt;BR /&gt;if ( $num_logins &amp;gt; 2 ) then&lt;BR /&gt;   echo "You have already have 2 sessions.  You can't login anymore"&lt;BR /&gt;  sleep 15&lt;BR /&gt;   exit&lt;BR /&gt;fi&lt;BR /&gt;</description>
    <pubDate>Thu, 24 May 2001 20:01:21 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2001-05-24T20:01:21Z</dc:date>
    <item>
      <title>Limit user connection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limit-user-connection/m-p/2532624#M869361</link>
      <description>Hi All.&lt;BR /&gt; how can I limit the number of connection by user at same time - HPUX10.20 ?&lt;BR /&gt;Thanx.</description>
      <pubDate>Thu, 24 May 2001 19:44:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limit-user-connection/m-p/2532624#M869361</guid>
      <dc:creator>Vogra</dc:creator>
      <dc:date>2001-05-24T19:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Limit user connection</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/limit-user-connection/m-p/2532625#M869362</link>
      <description>The only thing I can think of is to put something into one of the . files (.cshrc, .login, .profile, etc.) for each user and check to see if they are already logged in, if so, how many times.  If they are logged in too many times, then tell them they aren't allowed any more logins and do an exit.&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;user=`echo $LOGNAME`&lt;BR /&gt;num_logins=`who | grep $user | wc -l`&lt;BR /&gt;&lt;BR /&gt;if ( $num_logins &amp;gt; 2 ) then&lt;BR /&gt;   echo "You have already have 2 sessions.  You can't login anymore"&lt;BR /&gt;  sleep 15&lt;BR /&gt;   exit&lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Thu, 24 May 2001 20:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/limit-user-connection/m-p/2532625#M869362</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-05-24T20:01:21Z</dc:date>
    </item>
  </channel>
</rss>

