|
From: Alkis G. <al...@gm...> - 2011-07-18 10:55:43
|
Some people have been looking for a way to implement guest sessions on
LTSP. Here's a quick method.
Create /opt/ltsp/i386/usr/share/ldm/rc.d/S00-guest-sessions, with the
following contents:
case "$LDM_USERNAME" in
guest*)
ssh -S "$LDM_SOCKET" "$LDM_SERVER" 'cd; rm -rf .* *; rsync -a /etc/skel/ .'
;;
esac
Save and run `sudo ltsp-update-image`, if you're using NBD.
That's it, now all user accounts where the username starts with
"guest*", will have their documents and settings erased on login.
|