[K12OSN] PostSession script, rm command and user directories

Meelis Mihhailov meelis at nlib.ee
Sat Dec 16 11:32:51 UTC 2006


Hi and thanks for the reply. :)

I have tryed rm -rf /home/terminal9/.* and rm -rf /home/terminal9/* but no 
luck. It does remove my .gnome etc. files and other stuff but files/folders 
made by the user logged in are still not removed.

The gdm PostSession script is using root privileges and when system runs it, 
users that end the session are blocked (as said in the manuals and webpages 
I've looked). So there should be no problem erasing the directories.

My currently working server (FC4 and KDE + kiosktool) is using this method 
and there are no problems with PostScript and rm command while logging out 
from the account. Everything is erased and replaced with the default 
settings in /usr/BACKUP tar files. Now in backup server I can't get it to 
work ... :( regardless of the fack that it has been set up almost the same 
as current server (using GNOME desktop, FC5 and LTSP5 + sabayon for 
limitations)

Meelis
---
meelis at nlib.ee


----- Original Message ----- 
From: "Sudev Barar" <sbarar at gmail.com>
To: "Support list for open source software in schools." <k12osn at redhat.com>
Sent: Saturday, December 16, 2006 1:22 PM
Subject: Re: [K12OSN] PostSession script, rm command and user directories


> On 16/12/06, Meelis Mihhailov <meelis at nlib.ee> wrote:
>> This did not work. If I use the command rm -rf /home/terminal9 then files 
>> in
>> Desktop are not erased as well as files in the /home/terminal9 created by
>> the user.
>>
>> If I use rm -rf /home/terminal9/* then Desktop files are removed but 
>> files
>> in /home/terminal9 made by user are still not removed :(
>
> Did you run them as root? Or through some root owned script? Running
> in scripts owned by by others / gdm may not allow this.
>
> Alternatively do rm -rf /home/terminal9/.* and rm -rf
> /home/terminal9/* together work?
>
> Sorry I jumped in to the thread a bit late and I may be asking you to
> cover the ground all over again.
>
> -- 
> Regards,
> Sudev Barar
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
> 




More information about the K12OSN mailing list