<?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 Multiple Telnet Sessions by one user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626269#M591985</link>
    <description>Is there a way (probably by a script) to limit a users number of connections by I/P address. Here, all users login at the unix level with the same user id and within our software is where we have user specific security setup. The problem we are having is, within our software we have a specific number of licenses and at the unix level we have unlimited. We keep running out of licenses in our software because of users logging into the system more than once through the network. Does anyone have any suggestions?</description>
    <pubDate>Wed, 05 Dec 2001 21:05:26 GMT</pubDate>
    <dc:creator>Darrell Albee</dc:creator>
    <dc:date>2001-12-05T21:05:26Z</dc:date>
    <item>
      <title>Multiple Telnet Sessions by one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626269#M591985</link>
      <description>Is there a way (probably by a script) to limit a users number of connections by I/P address. Here, all users login at the unix level with the same user id and within our software is where we have user specific security setup. The problem we are having is, within our software we have a specific number of licenses and at the unix level we have unlimited. We keep running out of licenses in our software because of users logging into the system more than once through the network. Does anyone have any suggestions?</description>
      <pubDate>Wed, 05 Dec 2001 21:05:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626269#M591985</guid>
      <dc:creator>Darrell Albee</dc:creator>
      <dc:date>2001-12-05T21:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions by one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626270#M591986</link>
      <description>Hi Darrell,&lt;BR /&gt;&lt;BR /&gt;I don't think there is any easy way to do this.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2001 21:09:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626270#M591986</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-12-05T21:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions by one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626271#M591987</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;when a user logs in the .profile is run. You can build in a check like this:&lt;BR /&gt;&lt;BR /&gt;TEST=`ps -u `logname` | grep application_name`&lt;BR /&gt;if [ "$TEST" -eq "" ]&lt;BR /&gt;then&lt;BR /&gt;      exit 0&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Hope this will help,&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2001 21:11:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626271#M591987</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2001-12-05T21:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions by one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626272#M591988</link>
      <description>Hi Darrell,&lt;BR /&gt;&lt;BR /&gt;What a great first name!&lt;BR /&gt;&lt;BR /&gt;Here's some threads to check:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x101372106351d5118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x101372106351d5118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xb16b972194d6d5118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xb16b972194d6d5118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I'm sure you can find more using the search feature.  And you can also go to search.hp.com where you might get more hits.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 05 Dec 2001 21:11:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626272#M591988</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-12-05T21:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions by one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626273#M591989</link>
      <description>Not by IP, but you could by userid. However, necessity is the mother of all invention. I'm sure that you probably can figure something out.&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;C</description>
      <pubDate>Wed, 05 Dec 2001 21:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626273#M591989</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-12-05T21:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions by one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626274#M591990</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Keep this small script in your /etc/profile&lt;BR /&gt;&lt;BR /&gt;This will not allow more than two telnet sessions.&lt;BR /&gt;&lt;BR /&gt;NO=`who -R |grep $LOGNAME|wc -l`                         &lt;BR /&gt;if [ $NO -ge 2 ]                                         &lt;BR /&gt;then                                                     &lt;BR /&gt;echo "You are not allowed to telnet more than twice"      &lt;BR /&gt;exit 1                                                   &lt;BR /&gt;fi                                                       &lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2001 21:14:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626274#M591990</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-12-05T21:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions by one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626275#M591991</link>
      <description>Ooops.. You wanted by IP.. you can modify the same script like this.&lt;BR /&gt;&lt;BR /&gt;IP=`who -mR |awk '{FS="(";print $2}'|awk '{FS=")";print $1}'`   &lt;BR /&gt;NO=`who -R |grep $IP|wc -l`                                     &lt;BR /&gt;if [ $NO -ge 2 ]                                                &lt;BR /&gt;then                                                            &lt;BR /&gt;echo "You are not allowed to login more than twice              &lt;BR /&gt;from $IP"                                                       &lt;BR /&gt;exit 1                                                          &lt;BR /&gt;fi                                                              &lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2001 21:18:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626275#M591991</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-12-05T21:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions by one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626276#M591992</link>
      <description>Hi Darrell:&lt;BR /&gt;&lt;BR /&gt;Since you indicate that every user uses the same login, you will have to track by IPAddress or hostname.&lt;BR /&gt;&lt;BR /&gt;Consider adding a snippet of code to /etc/profile that runs 'last' and looks for a match against 'who -m' and if matched, exits.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 05 Dec 2001 21:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626276#M591992</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-12-05T21:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions by one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626277#M591993</link>
      <description>Guys,&lt;BR /&gt;&lt;BR /&gt;He does not want to restrict the userid since all his users use the same user id. He wants to restrict multiple login from a particular ip workstation. Say only two telnet logins from any workstation. If more than two telnet sessions from a single ip, it should block/exit that telnet session.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2001 21:19:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626277#M591993</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-12-05T21:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions by one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626278#M591994</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;ok just add :&lt;BR /&gt;&lt;BR /&gt;TEST=`ps -ef | grep application | wc -l`&lt;BR /&gt;if [ $TEST -lt n ]&lt;BR /&gt;n=number of licenses&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2001 21:25:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626278#M591994</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2001-12-05T21:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Telnet Sessions by one user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626279#M591995</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Sri has your answer.  Personally I like using who -u because you can get the IP with awk using {print $NF}&lt;BR /&gt;&lt;BR /&gt;You may also want to grep the who output for the common login in case some are allowed to login as the common user as well as a normal account.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Wed, 05 Dec 2001 21:59:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-telnet-sessions-by-one-user/m-p/2626279#M591995</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-12-05T21:59:11Z</dc:date>
    </item>
  </channel>
</rss>

