2009/1/30 Andrew Oakley :
>[snip]
> Public domain, do as you like.
>
Slight bash optimisation included below...
> [snip]
>
> username=$1
>
> if [[ "$username" == "" ]]
>
> then
>
> username=$defaultusername
>
> fi
>
username=${1:-${defaultusername}}
This single line replaces both the assignme
On 30/01/2009 20:40, Ian Pascoe wrote:
> Hi Rob
>
> I presume this is for your LTSP server?
>
> Have a trawl through the LTSP mailing list over on
> SourceForge - I seem to remember that someone had a similar problem on a
> Ubuntu installation just before Xmas and a work around was provided.
>
> I
...@lists.ubuntu.com
[mailto:ubuntu-uk-boun...@lists.ubuntu.com]on Behalf Of Rob Beard
Sent: 30 January 2009 17:16
To: British Ubuntu Talk
Subject: Re: [ubuntu-uk] Clearing home directory at logout
On 30/01/2009 16:51, Andrew Oakley wrote:
> Rob Beard wrote:
>
>> I was wondering if any
On 30/01/2009 16:51, Andrew Oakley wrote:
> Rob Beard wrote:
>
>> I was wondering if anyone knew how to clear out the home directory on
>> Ubuntu when a user logs out?
>>
>
> See below. Public domain, do as you like.
>
> By default the script will assume the username "visitor". You can pa
On 30/01/2009 15:11, Paul Sutton wrote:
>
> Rob, come to think of it, I am sure tom brough has sorted this out with
> his LTSP network, as i think he auto created accounts then the data gets
> deleted when the session is over.
>
> Paul
>
>
As far as I was aware it kept the data so users could a
Rob Beard wrote:
> I was wondering if anyone knew how to clear out the home directory on
> Ubuntu when a user logs out?
See below. Public domain, do as you like.
By default the script will assume the username "visitor". You can pass a
different username as a parameter if you wish.
I use this to
Rob Beard wrote:
> On 30/01/2009 12:44, Lucy wrote:
>> 2009/1/29 Rob Beard:
>>
>>> 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
>>>
On 30/01/2009 12:44, Lucy wrote:
> 2009/1/29 Rob Beard:
>
>> 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 pro
2009/1/29 Rob Beard :
> 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 comman
2009/1/30 Rob Beard :
> On 29/01/2009 23:37, Paul Sutton wrote:
>> 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
>>
> Does
On 29/01/2009 23:37, Paul Sutton wrote:
> 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
>
Doesn't look like there is a guest
Farran Lee wrote:
> On Thu, 2009-01-29 at 21:38 +, 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 th
*come=home
sorry
2009/1/29 Alec Wright
> Not sure about clearing it on logout, but i expect clearing it on login
> will do? System>Prefs>Sessions
> Add>Command: rm -fr $HOME/* ; cp /etc/skel/* $HOME/
> That deletes everyhting in the come dir and then copies the default home
> dir
>
> 2009/1/29 R
Not sure about clearing it on logout, but i expect clearing it on login will
do? System>Prefs>Sessions
Add>Command: rm -fr $HOME/* ; cp /etc/skel/* $HOME/
That deletes everyhting in the come dir and then copies the default home dir
2009/1/29 Rob Beard
> Hi folks,
>
> I was wondering if anyone kn
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
On Thu, 2009-01-29 at 21:38 +, 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 res
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 o
17 matches
Mail list logo