Re: Session expiration after desired time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.montagnani@xxxxxxxx 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    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-         "OK, so you're a Ph.D. Just don't TOUCH anything!"         -
----------------------------------------------------------------------
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
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




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux