Not sure about clearing it on logout, but i expect clearing it on login will do? System>Prefs>Sessions<br>Add>Command: rm -fr $HOME/* ; cp /etc/skel/* $HOME/<br>That deletes everyhting in the come dir and then copies the default home dir<br>
<br><div class="gmail_quote">2009/1/29 Rob Beard <span dir="ltr"><<a href="mailto:rob@esdelle.co.uk">rob@esdelle.co.uk</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi folks,<br>
<br>
I was wondering if anyone knew how to clear out the home directory on<br>
Ubuntu when a user logs out?<br>
<br>
Basically what I to achieve is have a script run to automatically when a<br>
user logs out of their Gnome session so it resets everything back to the<br>
default. I've tried putting a couple of commands into .bash_logout to<br>
see it that works but it doesn't seem to run on a Gnome session logout.<br>
I just wondered if anyone knew how I could specify a script to run at<br>
logout for specific users?<br>
<br>
Ta,<br>
<br>
Rob<br>
<font color="#888888"><br>
<br>
--<br>
<a href="mailto:ubuntu-uk@lists.ubuntu.com">ubuntu-uk@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk</a><br>
<a href="https://wiki.ubuntu.com/UKTeam/" target="_blank">https://wiki.ubuntu.com/UKTeam/</a><br>
</font></blockquote></div><br>