D.2. Preventing Users from Logging onto Several Thin Clients Simultaneously

This can be a real problem when a user logs onto several thin clients at the same time, for example if he tries to change the background picture in both places.

The solution is to set up a little test when a user logs on, to check if he is already logged on. If he is, then he is prevented from logging on again.

The script that makes this possible, or rather makes it impossible for one user to log on to several thin clients simultaneously is found in the file /etc/X11/Xsession.d/10skolelinux-one-login-per-host. You will also find instructions there as to how this script should be started. It is started by creating a so-called "flag file" with the command

tjener:~# touch /etc/debian-edu/limit-logins

D.2.1. Kicking Out a User

Sometimes it is necessary to kick a user out. This is the little script that takes care of that, logoutkill.sh

The script is already installed on your server, and is used in this way, to kick out the user named klaus,

/usr/share/debian-edu-config/tools/logoutkill.sh klaus