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

Re: [K12OSN] K12LTSP user in kiosk mode



Christopher K. Johnson wrote:

David Trask wrote:

Ok,

Here's what I have and what I wanna do. I have a K12LTSP server that
serves my school....it's a beast. It authenticates via Samba/LDAP to
another box that houses the home dirs and so forth...exported via
NFS....works great. My school librarian would like a couple of terminals
to act as kiosks in the library. We want them to log in automatically (as
a generic user...say....library1 and library2) and do nothing except
basically serve the web and maybe an app or two...with no capability to
save to /home. Our card catalog is web based....so really we're just
looking for electronic card catalogs....I'd like to be able to do it with
my existing set up.....any ideas?


If you are running gdm (gnome) then you can rename /etc/X11/gdm/PostLogin/Default.sample to /etc/X11/gdm/PostLogin/Default and edit it to check if $LOGIN is library1 or library2 and restore the $HOME from a tar or cpio archive you make of the pristine home dir.

Actually I did a little testing, and contrary to comments in Default.sample $LOGIN is not defined, but $USER is, so test that instead.

So Default should contain something like this:
#!/bin/sh
#
if [ $USER == "library1" ] || [ $USER == "library2" ]
then
 rm -rf $HOME
 cd /
 cpio -dumi -F /home/$USER.cpio
fi
exit 0


Of course you need to create a cpio archive of the homes first as root: find /home/library1 | cpio -o -O /home/library1.cpio find /home/library2 | cpio -o -O /home/library2.cpio

Enjoy!

--
-----------------------------------------------------------
  "Spend less!  Do more!  Go Open Source..." -- Dirigo.net
  Chris Johnson, RHCE #807000448202021





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