PDA

View Full Version : logout by script (root) for Xubuntu LTSP


flygin
August 8th, 2007, 12:47 PM
To use LTSP (5) and Xubuntu Desktop for a internet kiosk, I wrote a few shellscripts to manage account of customers.

All scripts work fine, countdown, credit, warning message, automatic creation of homedir during login, etc. but I could not find anything about
FORCED LOGOUT when the credit and grace time for a customer is finished.
A script (by root) should be able to log out a user.

I thought about a pkill for the user plus killing the ssh session.

1. any more graceful ways?

2. What about kiosk software for Xubuntu LTSP?


thanks in advance

koenn
August 8th, 2007, 02:55 PM
I don't know how you set things up, but when the user has logged in through a display manager (gdm, xdm, ...), stopping the display manager is effectively a logout.

/etc/init.d/gdm stop

flygin
August 12th, 2007, 10:02 AM
the login manager in ltsp 5 is ldm and there might be more than one user logged with ltsp, so stopping the ldm would (can't test it at the moment) log out all users.

found little help about ldm - no in depth instruction of how it works.


b.t.w. is this the right place of LTSP related stuff?

koenn
August 12th, 2007, 10:31 AM
yes, that's true.
so you'd have to terminate a specific session ...
no ideas here.

and I also don't know if there's a better place to ask edubuntu questions.

not much help eh ...