[ubuntu-uk] Clearing home directory at logout

Paul Sutton zleap at zleap.net
Thu Jan 29 23:37:36 GMT 2009


Farran Lee wrote:
> On Thu, 2009-01-29 at 21:38 +0000, Rob Beard wrote:
> 
>> Hi folks,
>>
>> I was wondering if anyone knew how to clear out the home directory on 
>> Ubuntu when a user logs out?
>>
>> Basically what I to achieve is have a script run to automatically when a 
>> user logs out of their Gnome session so it resets everything back to the 
>> default.  I've tried putting a couple of commands into .bash_logout to 
>> see it that works but it doesn't seem to run on a Gnome session logout.  
>> I just wondered if anyone knew how I could specify a script to run at 
>> logout for specific users?
>>
>> Ta,
>>
>> Rob
>>
>>
> 
> 
> i tried that once before - i basically made their home directory a
> folder in the /tmp directory. That worked...
> but then the new powermanager/user switcher-y thing instead of the
> shutdown button has a "guest" session in it. Not sure how to access that
> from gdm though...
> 
> ===================================
> Farran Lee
> I'm only 16 :P
> 
> 
I thought the guest account did this, or can be set to,  so I would
assume if it does its a case of either:

using the guest account or
figuring out how it does it and reproduce for a different account

Paul

-- 
Paul Sutton
www.zleap.net
Support Open and ISO standard file formats ISO 26300 odf
http://www.odfalliance.org
Next Linux User Group meet : Feb 7th : 3pm,  Shoreline Cafe Paignton



More information about the ubuntu-uk mailing list