<div dir="ltr"><div>Hi,</div><div>to get automatically lougut I tried with the TMOUT variable.</div><div>I put these lines in /etc/profile<br></div><div><br></div><div>TMOUT=1200</div><div>readonly TMOUT</div><div>export TMOUT</div><div><br></div><div>On local machine it give just a readonly error and the desktop starts.</div><div>On the contrary the X2GO session doesn't start even with only TMOUT=1200</div><div>I need to automatically logout users after a day of idle, what do you suggest?</div><div><br></div><div>Max<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 22 gen 2021 alle ore 19:03 Ulrich Sibiller <<a href="mailto:ulrich.sibiller@gmail.com">ulrich.sibiller@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Well, I do not know how you entered TMOUT into /etc/profile but i<br>
think you did some mistake there.<br>
<br>
You can check where /etc/profile.d/timeout.sh belongs to (dpkg -S<br>
/etc/profile.d/timeout.sh or rpm -qf /etc/profile.d/timeout.sh) and<br>
open a but there that it cannot handle read-only variables.<br>
<br>
Uli<br>
<br>
On Fri, Jan 22, 2021 at 5:24 PM Max V <<a href="mailto:angerangel@gmail.com" target="_blank">angerangel@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
> I put the TMOUT variable in /etc/profile and set it read only. Now I got this error:<br>
><br>
> Connection failed. /etc/profile: row 5: TMOUT: command not found /etc/profile.d/timeout.sh: row 4: TMOUT: read only variable<br>
><br>
><br>
> and the connection doesn't start.<br>
><br>
><br>
> Best regards<br>
><br>
> Max<br>
><br>
> _______________________________________________<br>
> x2go-dev mailing list<br>
> <a href="mailto:x2go-dev@lists.x2go.org" target="_blank">x2go-dev@lists.x2go.org</a><br>
> <a href="https://lists.x2go.org/listinfo/x2go-dev" rel="noreferrer" target="_blank">https://lists.x2go.org/listinfo/x2go-dev</a><br>
</blockquote></div>