Re: [X2Go-Dev] Problem with TMOUT variable

2021-01-25 Thread Edgar Fuß
> I put these lines in /etc/profile
> 
> TMOUT=1200
> readonly TMOUT
> export TMOUT
As others already mentioned, you'll have to look up what's in 
profile.d/timeout.sh and what package that file belongs to.

Generally speaking, I'm not sure it's a brilliant idea to globally set an 
environment variable with a generic name, yet no generic semantics, in profile.
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev


Re: [X2Go-Dev] Problem with TMOUT variable

2021-01-25 Thread Max V
Hi,
to get automatically lougut I tried with the TMOUT variable.
I put these lines in /etc/profile

TMOUT=1200
readonly TMOUT
export TMOUT

On local machine it give just a readonly error and the desktop starts.
On the contrary the X2GO session doesn't start even with only TMOUT=1200
I need to automatically logout users after a day of idle, what do you
suggest?

Max

Il giorno ven 22 gen 2021 alle ore 19:03 Ulrich Sibiller <
ulrich.sibil...@gmail.com> ha scritto:

> Well, I do not know how you entered TMOUT into /etc/profile but i
> think you did some mistake there.
>
> You can check where /etc/profile.d/timeout.sh belongs to (dpkg -S
> /etc/profile.d/timeout.sh or rpm -qf /etc/profile.d/timeout.sh) and
> open a but there that it cannot handle read-only variables.
>
> Uli
>
> On Fri, Jan 22, 2021 at 5:24 PM Max V  wrote:
> >
> > Hello,
> > I put the TMOUT variable in /etc/profile and set it read only. Now I got
> this error:
> >
> > Connection failed. /etc/profile: row 5: TMOUT: command not found
> /etc/profile.d/timeout.sh: row 4: TMOUT: read only variable
> >
> >
> > and the connection doesn't start.
> >
> >
> > Best regards
> >
> > Max
> >
> > ___
> > x2go-dev mailing list
> > x2go-dev@lists.x2go.org
> > https://lists.x2go.org/listinfo/x2go-dev
>
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev


Re: [X2Go-Dev] Problem with TMOUT variable

2021-01-22 Thread Ulrich Sibiller
Well, I do not know how you entered TMOUT into /etc/profile but i
think you did some mistake there.

You can check where /etc/profile.d/timeout.sh belongs to (dpkg -S
/etc/profile.d/timeout.sh or rpm -qf /etc/profile.d/timeout.sh) and
open a but there that it cannot handle read-only variables.

Uli

On Fri, Jan 22, 2021 at 5:24 PM Max V  wrote:
>
> Hello,
> I put the TMOUT variable in /etc/profile and set it read only. Now I got this 
> error:
>
> Connection failed. /etc/profile: row 5: TMOUT: command not found 
> /etc/profile.d/timeout.sh: row 4: TMOUT: read only variable
>
>
> and the connection doesn't start.
>
>
> Best regards
>
> Max
>
> ___
> x2go-dev mailing list
> x2go-dev@lists.x2go.org
> https://lists.x2go.org/listinfo/x2go-dev
___
x2go-dev mailing list
x2go-dev@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-dev