On 03/07/2014 04:48 PM, Ed Greshko issued this missive:
On 03/07/14 23:35, antonio montagnani wrote:
Ed Greshko ha scritto / said the following    il giorno/on 07/03/2014 14:42:
On 03/07/14 21:25, antonio.montagn...@alice.it wrote:
We are setting up a kiosk for a library with Fedora xguest (running Lxde)

How can I force the guest session (and only the guest session) to expire after 
an hour (or any desired time)??

Tnx for help

Are you saying you want to force a logout even if the guest is still using, or 
are you saying you want to logout after inactivity?

For inactivity, adding "export TMOUT=#seconds" to .bashrc should do the trick.



The library policy is that an user should connect for an hour, and it should 
provide an automatic logoff with a pop-up window that tell the user that is 
close to be logged off.


I see....

BTW, I only now had the chance to test my suggestion.....  It doesn't work 
anyway.  Fine for a terminal session....

You could have the user's startup session script do something like:

        1. Launch a script in the background that does something like:

            sleep 1200
            xmessage -buttons Acknowledge "Your session will expire in 10 
minutes"

        2. Launch a second script in the background that does:

            sleep 1800
            xfce4-session-logout --logout

(note that this is based on an XFCE desktop). The first script will
sleep 20 minutes, then pop up a warning dialog box on the screen that
tells the user their session will rather unceremoniously end in another
10 minutes. The second script sleeps 30 minutes, then terminates the
XFCE session.

I haven't tried this, but it should work. You'd have to modify the
second script to use some other session termination thing if you don't
use XFCE.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ri...@alldigital.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-         "OK, so you're a Ph.D. Just don't TOUCH anything!"         -
----------------------------------------------------------------------
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to