Thanks for the tip Bram,

It was easy and works well.
>From within a users home I tar everything.
Then from /etc/kde3/kdm/Xstartup I call this.

*********************
USER_ID=`getent passwd $USER|cut -f 3 -d :`
HOMEDIR=`getent passwd $USER|cut -f 6 -d :`

#we only rebuild the homes users of users above 2000
if [ "$USER_ID" -ge "2000" ]; then
        rm -fr $HOMEDIR
        mkdir $HOMEDIR
        tar xf /etc/restore/library.tar --directory $HOMEDIR
        chown -R $USER $HOMEDIR
fi
*********************
Cheers.
Chris.

On 9/8/05, pandarinathan raman <[EMAIL PROTECTED]> wrote:
> 
> --- Chris Fanning <[EMAIL PROTECTED]>
> wrote:
> 
> > Hello Bram,
> >
> > > that settings are and will stay as they are, I
> > would like the home dirs
> > > of the users to be restored from a backup at each
> > reboot.
> >
> > I find myself looking into the same question.
> > How did you get along with that?
> >
> > Thanks.
> > Chris.
> >
> >
> > On 6/22/05, Bram Lauwers <[EMAIL PROTECTED]>
> > wrote:
> > > Hello,
> > >
> > > I'm setting up a thin-client kiosk system for a
> > library, they only want
> > > to see a browser with the library catalog when the
> > client logs in. I've
> > > completed this far and locked down the user
> > enviroment. But to be sure
> > > that settings are and will stay as they are, I
> > would like the home dirs
> > > of the users to be restored from a backup at each
> > reboot.
> > >
> > > Now I have tried to do this with RCFILE_01= in the
> > lts.conf, but this
> > > won't work since the client sees /opt/ltsp/i386 as
> > its root. So I can't
> > > acces the /home dir on the server side. Also the
> > user group seems to be
> > > unknown.
> > >
> > > Then I tought maybe I could get it done with
> > dhclient-script since that
> > > is invoked before pivot_root is changed. But that
> > doesn't seem to work
> > > either. I was assuming it used dhclient-script
> > from /etc and not
> > > /opt/ltsp/i386/etc. Correct?
> > >
> > > I need some help please!
> 
> Since home dirs will come from server, I feel it is
> better to tackle at the time of login by the user.
> 
> In X, Xstartup script will run as root immediately
> after successful login but before the user is given
> the window. You may probably put the script to copy
> from backup before they can work. This has to be setup
> in the display manager you use. e.g for kdm it is in
> /etc/kde/kdm/Xstartup.
> 
> Hope this helps.
> 
> Raman.P
> 
> 
> 
> ___________________________________________________________
> To help you stay safe and secure online, we've developed the all new Yahoo! 
> Security Centre. http://uk.security.yahoo.com
>


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_____________________________________________________________________
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