<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1257">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hi !</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have a weird problem and can't solve it by myself 
:)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm using K12 project for about 6 months now and 
started with version 4. </FONT></DIV>
<DIV><FONT face=Arial size=2>My server has been set up to provide workstations 
for readers in library. So the main idea is to use ltsp user accounts as kiosk 
accounts. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My solution for this in version 4 is the following 
:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1. Create a user</FONT></DIV>
<DIV><FONT face=Arial size=2>2. Window manager : KDE</FONT></DIV>
<DIV><FONT face=Arial size=2>3. Set permissions and limitations by 
kiosktool</FONT></DIV>
<DIV><FONT face=Arial size=2>4. in the PostSession script I have a code that 
will remove the users' directory from the system and replaces it with a 
previously created profile in the tar file. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So every time a user ends his/her session, home 
directory will be removed and replaced with the one in the tar file. (with the 
needed permissions )</FONT></DIV>
<DIV><FONT face=Arial size=2>This works fine but now as I'm setting up so called 
backup server with LTSP 5, FC 5, Gnome 2.8 and Sabayon ... my solution 
won't work :(</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>in the old system I have the following code that 
will erase the home directory of a user who logged off :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>cd /</FONT></DIV>
<DIV><FONT face=Arial size=2>cp /usr/BACKUP/terminal1.tar 
/home/terminal1.tar</FONT></DIV>
<DIV><FONT face=Arial size=2>cd /home</FONT></DIV>
<DIV><FONT face=Arial size=2>rm -R terminal1</FONT></DIV>
<DIV><FONT face=Arial size=2>tar -xvf terminal1</FONT></DIV>
<DIV><FONT face=Arial size=2>rm -f terminal1.tar</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>in the new system I have the same code for the same 
user for the same directory but for my suprise ... it won't erase it ! It keeps 
files like .name and directories like .name</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Made a debug script to throw me a log to show 
what the PostSession RM command is doing. Found out that it event 
won't look at the directories like "Desktop" or "Drives" in the user home 
directory as like they are not there.  </FONT></DIV>
<DIV></FONT> </DIV></DIV>
<DIV><FONT face=Arial size=2>Also if a user creates a directory or saves a file 
on the desktop or in the home direcory those won't be erased as well. I have 
googled my brains out but with no luck .</FONT></DIV>
<DIV><FONT face=Arial size=2>In the manuals and webpages I have read ... rm -R 
removes the directoryes and sub-directories. If I but a "-f " parameter, there 
shall be no problems removing the "read only" files. The PostSession script will 
run with root privileges so there can't be a problem with the file permissions. 
Hei ... it works in my current server (LTSP 4, FC4) that is in use as we speak. 
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can someone please help me to solve this weird 
problem beacause we need to replace the running server before the end of this 
year and my ideas have ran out :(</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Also there is a little idea for LTSP developers :) 
Maybe in the future releaces there can be some kind of module for this kind of 
terminals ? Built-in kiosk module I mean :) </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><BR>Meelis<BR>---<BR><A 
href="mailto:meelis@nlib.ee">meelis@nlib.ee</A></DIV>
<DIV> </DIV>
<DIV></FONT> </DIV></BODY></HTML>