<font color='black' size='2' face='arial'><font class="Apple-style-span" size="2" style="color: black; font-family: arial; ">Hi All:</font>
<div style="color: black; font-family: arial; "><font class="Apple-style-span" size="2"><br>
</font></div>

<div style="color: black; font-family: arial; "><font class="Apple-style-span" size="2">We're hoping to set and enable the number of allowed connections/sessions by user and user group in x2go.  E.g., we want to limit a user to one session/connection/display at a time:  that means from client machine A, if the user A is connected, a connection to his/her account could not be established from client machine B or a second connection couldn't be established from client Machine A.  User A, if s/he had second account on the server, however, could start one and only one connection to that second account while running one and only one session to the first account.</font></div>

<div style="color: black; font-family: arial; "><font class="Apple-style-span" size="2"><br>
</font></div>

<div style="color: black; font-family: arial; "><font class="Apple-style-span" size="2">We think we've seen some posts to this effect involving editing /etc/x2go/x2goserver.conf and /usr/bin/x2gosessionlimit (see http://comments.gmane.org/gmane.linux.terminal-server.x2go.devel/954).  We've tried making some of the following types of edits:</font></div>

<div style="color: black; font-family: arial; "><font class="Apple-style-span" size="2"><br>
</font></div>

<div style="color: black; font-family: arial; "><font class="Apple-style-span" size="2">A)  If we edit x2goserver.conf alone, and set either "UserA=1 and/or "UserGroupA=1", we can make multiple connections.  When we start another instance of x2go, it shows there is a current session, and when we select "New" in the GUI, a second concurrent session begins.</font></div>

<div style="color: black; font-family: arial; "><font class="Apple-style-span" size="2"><br>
</font></div>

<div style="color: black; font-family: arial; "><font class="Apple-style-span" size="2">B)  If we edit </font><span class="Apple-style-span" style="font-size: small; "> /usr/bin/x2gosessionlimit, and make the following changes and then do a "service x2goserver restart" (not sure if this restart is appropriate or necessary)...</span></div>

<div style="color: black; font-family: arial; "><span class="Apple-style-span" style="font-size: small; "><br>
</span></div>

<div style="color: black; font-family: arial; "><font class="Apple-style-span" size="2">Add these lines:</font></div>

<div><span class="Apple-style-span" style="color: black; font-size: small; "><span class="Apple-style-span" style="color: rgb(34, 34, 34); line-height: 19px; "><pre style="font-family: palatino, georgia, verdana, arial, sans-serif; "> if($strlimit <= $scount)
     {
         print "LIMIT\n";
         exit 0;
     }</pre><pre><font class="Apple-style-span" face="Arial, Helvetica, sans-serif">Comment out these lines:</font></pre></span></span><pre style="color: rgb(34, 34, 34); line-height: 19px; font-size: small; "><span class="Apple-style-span" style="font-family: palatino, georgia, verdana, arial, sans-serif; "> if($</span><font class="Apple-style-span" face="Arial, Helvetica, sans-serif">max</font><font class="Apple-style-span" face="palatino, georgia, verdana, arial, sans-serif">limit <= $scount)
     {
         print "</font><font class="Apple-style-span" face="Arial, Helvetica, sans-serif">$maxlimit</font><font class="Apple-style-span" face="palatino, georgia, verdana, arial, sans-serif">\n";
         exit 0;
     }</font></pre><pre style="color: rgb(34, 34, 34); line-height: 19px; font-size: small; "><font class="Apple-style-span" face="Arial, Helvetica, sans-serif">print "$maxlimit\n";</font></pre><pre><font class="Apple-style-span">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Arial; "><font class="Apple-style-span" color="#232323" size="2">....and change settings in x2goserver.conf, we got some inconstant results we haven't been able to duplicate, but were along the lines </font></div>

<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Arial; "><font class="Apple-style-span" color="#232323" size="2">either of a "session limit being exceeded" message even if we had group and/or user limits set to 1 (i.e., we were unable to connect at all), </font></div>

<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Arial; "><font class="Apple-style-span" color="#232323" size="2">or back to any number of sessions we wanted to start.</font><span class="Apple-style-span" style="color: rgb(35, 35, 35); font-family: Arial, Helvetica, sans-serif; line-height: 19px; font-size: small; ">
</span></div>

<div style="font-family: Arial, Helvetica, sans-serif; color: rgb(34, 34, 34); line-height: 19px; font-size: small; "><br>
</div>

<div style="font-family: Arial, Helvetica, sans-serif; color: rgb(34, 34, 34); line-height: 19px; font-size: small; ">Can someone suggest a procedure/example of how to do this successfully?  Ideally, we'd like the flexibility to limit # of connections/sessions both</div>

<div style="font-family: Arial, Helvetica, sans-serif; color: rgb(34, 34, 34); line-height: 19px; font-size: small; ">by user group and individual user.</div>

<div style="font-family: Arial, Helvetica, sans-serif; color: rgb(34, 34, 34); line-height: 19px; font-size: small; "><br>
</div>

<div style="font-family: Arial, Helvetica, sans-serif; color: rgb(34, 34, 34); line-height: 19px; font-size: small; ">Thanks,</div>

<div style="font-family: Arial, Helvetica, sans-serif; color: rgb(34, 34, 34); line-height: 19px; font-size: small; "><br>
</div>

<div style="font-family: Arial, Helvetica, sans-serif; color: rgb(34, 34, 34); line-height: 19px; font-size: small; ">Ted</div>
</font></pre></div>
</font>