[ubuntu-uk] Clearing home directory at logout
Rob Beard
rob at esdelle.co.uk
Thu Jan 29 22:10:10 GMT 2009
On 29/01/2009 21:49, Farran Lee wrote:
>
> 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...
Actually having a bit of a play I think I might have found a
workaround. I ended up installing the GDM Watchdog which checks for
when a user logs out (or alternatively turns off the client). It then
closes all the users processes so in there I've put in a test command
which works and runs as the logged in user. Hopefully I can put
together a simple script to empty the home directory and unpack a tar
archive back into the directory. Not ideal but as I'm on a tight
schedule (server is being installed on Saturday and goes live on the 7th
Feb) it looks like it'll have to do. I'll just have to try and find a
more elegant solution afterwards.
Still I'm sure it'll all be worth it in the end when there are 6 more
Ubuntu machines out there :-)
Rob
More information about the ubuntu-uk
mailing list