Hi,
Here's an rc script for refreshing user accounts (excluding users of
your choice) that I thought I'd share...thanks to the guys in the IRC
channel who helped me figure it out!
In /opt/ltsp/i386/usr/share/ldm/rc.d/S02-refresh-user:
thisUser=$(ssh -Y -S ${LDM_SOCKET} ${LDM_SERVER} 'echo ${USER}')
case "$thisUser" in
root|user1|user2|user3) #the users you want to exclude
echo "Really not a good idea!"
;;
*)
ssh -Y -l $thisUser -S ${LDM_SOCKET} ${LDM_SERVER}
"/usr/local/bin/refresh-login"
;;
esac
In /usr/local/bin/refresh-login: (this is assuming you've copied the
backup of your users to /var/userbackups/username)
#!/bin/bash
rsync -az --delete /var/userbackups/$USER/ /home/$USER
Cheers!
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cindy Murdock
IT Services Director
Meadville Public Library | CCFLS
http://meadvillelibrary.org | http://ccfls.org
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_____________________________________________________________________
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