Unix Technical Forum

[Slight OT] Samba - Roaming Profiles - Dynamically Remove Temp Files

This is a discussion on [Slight OT] Samba - Roaming Profiles - Dynamically Remove Temp Files within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This isn't exactly Slackware specific, but I've googled a bit just out of ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 03:12 PM
+Alan Hicks+
 
Posts: n/a
Default [Slight OT] Samba - Roaming Profiles - Dynamically Remove Temp Files

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This isn't exactly Slackware specific, but I've googled a bit just out
of curiousity and haven't found much in the matter of solutions. Here's
the problem. When using roaming profiles, sometimes the profile will
refuse to roam because some temporary internet file has a bad name.
Naturally Windows is too brain-dead to just migrate everything but that
one file, so none of it happens and the user gets a temporary profile.

Now, my solution historically has always been to disable roaming
profiles. But let's suppose for a moment I work for an organization
that wants these things. How could I setup a script to remove those
files everytime the user logs in? I realize I could just call the
script from cron every hour or so, but that wouldn't be much fun.

Is there some way to run say a bash script on the linux box when the
user authenticates, before running the netlogon script and before
attempting to migrate the roaming profile? If so, how is this done?

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBN+k3lKR45I6cfKARAqV4AJ4uSipy18wB61iQeFTSxz VOQ14xOQCfQa/o
i0WuMnKUB/u6Q+u7qn2OBRk=
=UmH7
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 03:12 PM
Rich Grise
 
Posts: n/a
Default Re: [Slight OT] Samba - Roaming Profiles - Dynamically Remove Temp Files

+Alan Hicks+ wrote:
>
> This isn't exactly Slackware specific, but I've googled a bit just out
> of curiousity and haven't found much in the matter of solutions. Here's
> the problem. When using roaming profiles, sometimes the profile will
> refuse to roam because some temporary internet file has a bad name.
> Naturally Windows is too brain-dead to just migrate everything but that
> one file, so none of it happens and the user gets a temporary profile.
>
> Now, my solution historically has always been to disable roaming
> profiles. But let's suppose for a moment I work for an organization
> that wants these things. How could I setup a script to remove those
> files everytime the user logs in? I realize I could just call the
> script from cron every hour or so, but that wouldn't be much fun.
>
> Is there some way to run say a bash script on the linux box when the
> user authenticates, before running the netlogon script and before
> attempting to migrate the roaming profile? If so, how is this done?
>

Wouldn't putting it one of ~/.bashrc or ~/.profile do it? Or do they
run too late in the login process? I assume you've already solved
the problem of which specific temp files need to go. If it's only
temp files, is there such a thing as a logout script?

Of course, what you _really_ need to do is fix or lose the S/W that's
leaving trash lying around on the disk. ;-)

Good Luck,
Rich


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 03:12 PM
An Metet
 
Posts: n/a
Default Re: [Slight OT] Samba - Roaming Profiles - Dynamically Remove Temp Files

NOTE: This message was sent thru a mail2news gateway.
No effort was made to verify the identity of the sender.
--------------------------------------------------------

pgp trash troll delete

Hicks, Alan
188 Shady Dale Dr
Lizella, GA 31052
478-935-8132

+Alan Hicks+ <alan@lizella.network> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1


> This isn't exactly Slackware specific, but I've googled a bit just out
> of curiousity and haven't found much in the matter of solutions. Here's
> the problem. When using roaming profiles, sometimes the profile will
> refuse to roam because some temporary internet file has a bad name.
> Naturally Windows is too brain-dead to just migrate everything but that
> one file, so none of it happens and the user gets a temporary profile.


> Now, my solution historically has always been to disable roaming
> profiles. But let's suppose for a moment I work for an organization
> that wants these things. How could I setup a script to remove those
> files everytime the user logs in? I realize I could just call the
> script from cron every hour or so, but that wouldn't be much fun.


> Is there some way to run say a bash script on the linux box when the
> user authenticates, before running the netlogon script and before
> attempting to migrate the roaming profile? If so, how is this done?


> - --
> It is better to hear the rebuke of the wise,
> Than for a man to hear the song of fools.
> Ecclesiastes 7:5
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)


> iD8DBQFBN+k3lKR45I6cfKARAqV4AJ4uSipy18wB61iQeFTSxz VOQ14xOQCfQa/o
> i0WuMnKUB/u6Q+u7qn2OBRk=
> =UmH7
> -----END PGP SIGNATURE-----










Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 03:13 PM
+Alan Hicks+
 
Posts: n/a
Default Re: [Slight OT] Samba - Roaming Profiles - Dynamically Remove Temp Files

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In alt.os.linux.slackware, Rich Grise dared to utter,
> Wouldn't putting it one of ~/.bashrc or ~/.profile do it? Or do they
> run too late in the login process?


Samba logons don't exactly run bash. In fact, they're not a true unix
login. You don't get a shell or anything like that.

> Of course, what you _really_ need to do is fix or lose the S/W that's
> leaving trash lying around on the disk. ;-)


Yes well, Windows XP and Internet Explorer aren't things you can just
fix. :^)

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBOIWjlKR45I6cfKARAnKcAKCSvUz7dEJql+rxb3Nyvt SAKAHf3ACePRUt
2TITHp/KU204ygt4ADYba1o=
=36ip
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 03:13 PM
Rich Grise
 
Posts: n/a
Default Re: [Slight OT] Samba - Roaming Profiles - Dynamically Remove Temp Files

+Alan Hicks+ wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> In alt.os.linux.slackware, Rich Grise dared to utter,
>> Wouldn't putting it one of ~/.bashrc or ~/.profile do it? Or do they
>> run too late in the login process?

>
> Samba logons don't exactly run bash. In fact, they're not a true unix
> login. You don't get a shell or anything like that.


Oh - OOpps, silly me. :-)
>
>> Of course, what you _really_ need to do is fix or lose the S/W that's
>> leaving trash lying around on the disk. ;-)

>
> Yes well, Windows XP and Internet Explorer aren't things you can just
> fix. :^)


More's the pity.

Thanks,
Rich

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 03:14 PM
/dev/rob0
 
Posts: n/a
Default Re: [Slight OT] Samba - Roaming Profiles - Dynamically Remove Temp Files

On Thu, 02 Sep 2004 22:48:15 -0500, +Alan Hicks+ wrote:
> Is there some way to run say a bash script on the linux box when the
> user authenticates, before running the netlogon script and before
> attempting to migrate the roaming profile? If so, how is this done?


Maybe this:
/usr/doc/samba-3.0.4/docs/htmldocs/smb.conf.5.html#PREEXEC
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 03:14 PM
+Alan Hicks+
 
Posts: n/a
Default Re: [Slight OT] Samba - Roaming Profiles - Dynamically Remove Temp Files

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In alt.os.linux.slackware, /dev/rob0 dared to utter,
> /usr/doc/samba-3.0.4/docs/htmldocs/smb.conf.5.html#PREEXEC


Hot damn I believe that will do it! Thanks /dev/rob0. I should have
found that one for myself.

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBOV4elKR45I6cfKARAjqrAJ9cVIX728rf/etCYEv7bEddYA0q2wCgoknG
RSe0El7R5aFTOyWpgUILVh0=
=2L/2
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 03:14 PM
An Metet
 
Posts: n/a
Default Re: [Slight OT] Samba - Roaming Profiles - Dynamically Remove Temp Files

NOTE: This message was sent thru a mail2news gateway.
No effort was made to verify the identity of the sender.
--------------------------------------------------------

pgp trash troll delete

Hicks, Alan
188 Shady Dale Dr
Lizella, GA 31052
478-935-8132

+Alan Hicks+ <alan@lizella.network> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1


> In alt.os.linux.slackware, /dev/rob0 dared to utter,
> > /usr/doc/samba-3.0.4/docs/htmldocs/smb.conf.5.html#PREEXEC


> Hot damn I believe that will do it! Thanks /dev/rob0. I should have
> found that one for myself.


> - --
> It is better to hear the rebuke of the wise,
> Than for a man to hear the song of fools.
> Ecclesiastes 7:5
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)


> iD8DBQFBOV4elKR45I6cfKARAjqrAJ9cVIX728rf/etCYEv7bEddYA0q2wCgoknG
> RSe0El7R5aFTOyWpgUILVh0=
> =2L/2
> -----END PGP SIGNATURE-----


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-19-2008, 03:14 PM
Franklin
 
Posts: n/a
Default Re: [Slight OT] Samba - Roaming Profiles - Dynamically Remove Temp Files

On Fri, 03 Sep 2004 09:55:38 -0500, +Alan Hicks+ wrote:

><SNIP>
>
> Yes well, Windows XP and Internet Explorer aren't things you can just
> fix. :^)
>


I most likely completely misunderstand your problem, but if it's only the
contents of the Temporary Internet Files that's messing things up, can't
you just configure IE to delete the contents of that file on closure of
the browser. I set this up on my boxes all the time because I hate
leaving all that crap on my box. The option is a check-box on the advanced
tab of the Internet Options. This will leave that file empty unless the
browser is being used. Of course this is done on the clients.

My appologies if this is not the issue.


> - --
> It is better to hear the rebuke of the wise, Than for a man to hear the
> song of fools. Ecclesiastes 7:5
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
>
> iD8DBQFBOIWjlKR45I6cfKARAnKcAKCSvUz7dEJql+rxb3Nyvt SAKAHf3ACePRUt
> 2TITHp/KU204ygt4ADYba1o=
> =36ip
> -----END PGP SIGNATURE-----


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-19-2008, 03:14 PM
+Alan Hicks+
 
Posts: n/a
Default Re: [Slight OT] Samba - Roaming Profiles - Dynamically Remove Temp Files

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In alt.os.linux.slackware, Franklin dared to utter,
> can't
> you just configure IE to delete the contents of that file on closure of
> the browser.
> Of course this is done on the clients.


And that of course is the problem. Leaving reliability of a system up
to the numerous clients is asking for trouble. It's best to fix
problems in one place, the file server, and be done with the entire
issue. This is of course much simpler and more reliable than requiring
each of dozens of clients everywhere to have a setting placed a certain
way, and not changed.

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBOeYNlKR45I6cfKARAivTAKCs0TsQmJmghU3X4HYRU4 AQVdWvmQCfavLv
him8yn/Bp5CiR9OO2t8A1s0=
=D1lP
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:40 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com