PC Review


Reply
Thread Tools Rate Thread

16-bit %TEMP% is broken in XP, still

 
 
Gordon Fecyk
Guest
Posts: n/a
 
      8th Apr 2005
I just spent the past week with some tier 1 tech at Microsoft assisted
support. He believes I'm insane.

16-bit apps use the System settings for TEMP and TMP, which points to
%systemroot%temp, which don't work with limited user accounts.[1] Only the
user that created certain temporary files can change or erase them, and
other users won't be able to use those apps.

By comparison, Win2K SP3 and earlier make 16-bit apps use the User settings
for TEMP and TMP, which points to %userprofile%\Local Settings\Temp.
Starting with Win2K SP4, this was broken like XP is, but a patch supplied
under KB 840214 changed that behaviour back.

Now XP's used the wrong 16-bit TEMP behaviour since its release. At least
US English versions have. I can't seem to convince this tech at Microsoft
that this is a problem that needs fixing.

[1] Yes, there's no guarantee 16-bit apps can work with limited accounts -
that's my problem and it's usually fixed by granting Modify access to Users
to the app's installation folder. I don't want to do this to
%systemroot%\temp because it will expose that to abuse - system processes
and services store their temp files here and it's possible to break them by
messing with temporary files here.

--
PGP key (0x0AFA039E): <http://www.pan-am.ca/(E-Mail Removed)>
Prevent problems before they happen and help others avoid bad design.
<http://www.pan-am.ca/antiwindowscatalog/>


 
Reply With Quote
 
 
 
 
Roger Abell
Guest
Posts: n/a
 
      8th Apr 2005
Disclaimer: I do not do or use 16 bit apps - never have
(or 8 bit for that matter) and hopefully never will.

If what you are saying is:
Nt 4 had really poor design
W2k introduced some changes to default NTFS permissions
and introduced per-user application data storage area including
a user specific temp
WOW in W2k used the user env vars %temp% and %tmp% so
that limited accounts would access their private temp area.
MS introduced a KB fix for those needing back compat so that
WOW would use system env vars.
WOW in XP, and now W2k3 use the system env vars for these
and ignore fact that the user temp area exists

If that is the case, then yes, I totally agree with you.
That behavior is wrong, wrong, wrong !

--
Roger Abell
Microsoft MVP (Windows Security)

"Gordon Fecyk" <(E-Mail Removed)> wrote in message
news:OWkG$(E-Mail Removed)...
> I just spent the past week with some tier 1 tech at Microsoft assisted
> support. He believes I'm insane.
>
> 16-bit apps use the System settings for TEMP and TMP, which points to
> %systemroot%temp, which don't work with limited user accounts.[1] Only

the
> user that created certain temporary files can change or erase them, and
> other users won't be able to use those apps.
>
> By comparison, Win2K SP3 and earlier make 16-bit apps use the User

settings
> for TEMP and TMP, which points to %userprofile%\Local Settings\Temp.
> Starting with Win2K SP4, this was broken like XP is, but a patch supplied
> under KB 840214 changed that behaviour back.
>
> Now XP's used the wrong 16-bit TEMP behaviour since its release. At least
> US English versions have. I can't seem to convince this tech at Microsoft
> that this is a problem that needs fixing.
>
> [1] Yes, there's no guarantee 16-bit apps can work with limited accounts -
> that's my problem and it's usually fixed by granting Modify access to

Users
> to the app's installation folder. I don't want to do this to
> %systemroot%\temp because it will expose that to abuse - system processes
> and services store their temp files here and it's possible to break them

by
> messing with temporary files here.
>
> --
> PGP key (0x0AFA039E): <http://www.pan-am.ca/(E-Mail Removed)>
> Prevent problems before they happen and help others avoid bad design.
> <http://www.pan-am.ca/antiwindowscatalog/>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Vista strange settings on temp folder AppData\Local\Temp\1 Nick Windows Vista Security 2 13th May 2009 06:14 PM
Lots of problems - regedit is broken, taskbar is misbehaving, audio is broken.. HELP! Elspeth Windows Vista General Discussion 3 2nd Jul 2008 11:19 PM
%temp% points to %systemroot%\temp instead of %userprofile%\LocalS~1\temp Gordon Fecyk Windows XP Setup 6 28th Mar 2005 09:53 PM
%temp% points to %systemroot%\temp instead of %userprofile%\LocalS~1\temp Gordon Fecyk Windows XP Security 6 28th Mar 2005 09:53 PM
How to Create a Writeable Temp Copy of a Table, Then Add the Recs to Temp, & Write to Orig Mike Thomas Microsoft Access Form Coding 2 17th Dec 2004 03:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:59 AM.