Hi Leon,

I've done it on ltsp5 as described below.  It's been a while since I've 
set it up on a fresh install, though, so please feel free to correct me 
if anything has changed:

Set up your user account as desired.  Create a copy of their /home 
directory in /var/userbackups.

Create a startup script like so:

/etc/X11/Xsession.d/01custom_refresh-user:

case "$USER" in
    root|nimda|staff1|staff2)
    echo "do nothing!"
     ;;
    *)
    /usr/bin/rsync -az --delete --exclude ".Xauthority" 
/var/userbackups/$USER/
/home/$USER
     ;;
esac

Note that I had to exclude .Xauthority, since when it's obliterated by 
the rsync it messes up the current session.

HTH!

Cheers,
Cindy

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cindy Murdock Ames
IT Services Director
Meadville Public Library    | CCFLS
http://meadvillelibrary.org | http://ccfls.org



Leon Hauck wrote:
> We are getting ready to roll out an LTSP installation for use as 
> internet/openoffice workstations at a local non-profit.  It will have 
> both regular users and guest accounts.
>
> We're just using Fluxbox (not Gnome) in case that matters.
>
> The only thing I've got left to address is the cleanup of guest accounts 
> after logoff.
>
> I'm guessing an ldm K script would be in order.  I was wondering if 
> anyone had an example they could share which would clean up anything 
> they've created/downloaded into their guest home directory.
>
> I supposed I could change the ownership of all the files I don't want 
> purged, and then do something like:
>
> find /home/$LDM_USERNAME/* -user $LDM_USERNAME -exec rm {} \;
>
> I was just wondering if there was something more eloquent....
>
> Thanks in advance.
>
> -- Leon
>
> ------------------------------------------------------------------------------
> _____________________________________________________________________
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>       https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>   



------------------------------------------------------------------------------
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to