Home All Groups Group Topic Archive Search About

xp home temp directory permissions

Author
24 Oct 2007 10:22 PM
scooter
We have a web application using ActiveX controls that resize and save
photographs to the %temp% directory, then it reads them and posts to the
server.

Normally this is fine and only takes a few changes in internet options to
allow it to work, but, with xp home we have a user where the component can't
operate, it can't read from the temp directory.

So my question is how to adjust security on xp home so that an ActiveX
control can read/write to %temp%  ??

Author
24 Oct 2007 10:50 PM
Steven L Umbach
Try granting users or everyone read permisisons to that folder. In XP Home
that can be done by booting into Safe Mode as administrator to see the
security tab for a folder or using a command line tool such as the built in
cacls. %temp% refers to the documents and settings\username\local
settings\temp folder.

Steve

http://www.ss64.com/nt/cacls.html  -- cacls syntax and examples

Show quoteHide quote
"scooter" <scoo***@discussions.microsoft.com> wrote in message
news:2315524A-BF0B-4F5C-A141-7842642AEB04@microsoft.com...
> We have a web application using ActiveX controls that resize and save
> photographs to the %temp% directory, then it reads them and posts to the
> server.
>
> Normally this is fine and only takes a few changes in internet options to
> allow it to work, but, with xp home we have a user where the component
> can't
> operate, it can't read from the temp directory.
>
> So my question is how to adjust security on xp home so that an ActiveX
> control can read/write to %temp%  ??
Author
25 Oct 2007 5:04 PM
scooter
More info::

This  machine is a Compact and it has a "Compact Owner" user for logins. I'm
getting fairly certain that this is the trouble. I'm sure I'll have to have
the user specifically set permissions, this is a typical activex control and
most users have no trouble getting this all to work.

Can you post the steps to boot in safe mode under XP Home?  The choice
doesn't come up with F2 or F12, do you just hit space bar when it's first
booting up?

Show quoteHide quote
"Steven L Umbach" wrote:

> Try granting users or everyone read permisisons to that folder. In XP Home
> that can be done by booting into Safe Mode as administrator to see the
> security tab for a folder or using a command line tool such as the built in
> cacls. %temp% refers to the documents and settings\username\local
> settings\temp folder.
>
> Steve
>
> http://www.ss64.com/nt/cacls.html  -- cacls syntax and examples
>
> "scooter" <scoo***@discussions.microsoft.com> wrote in message
> news:2315524A-BF0B-4F5C-A141-7842642AEB04@microsoft.com...
> > We have a web application using ActiveX controls that resize and save
> > photographs to the %temp% directory, then it reads them and posts to the
> > server.
> >
> > Normally this is fine and only takes a few changes in internet options to
> > allow it to work, but, with xp home we have a user where the component
> > can't
> > operate, it can't read from the temp directory.
> >
> > So my question is how to adjust security on xp home so that an ActiveX
> > control can read/write to %temp%  ??
>
>
>
Author
25 Oct 2007 10:28 PM
Steven L Umbach
Hit F8 before the OS starts loading.

Steve


Show quoteHide quote
"scooter" <scoo***@discussions.microsoft.com> wrote in message
news:840F3F35-9E27-4B7E-A34A-759E32B8287D@microsoft.com...
> More info::
>
> This  machine is a Compact and it has a "Compact Owner" user for logins.
> I'm
> getting fairly certain that this is the trouble. I'm sure I'll have to
> have
> the user specifically set permissions, this is a typical activex control
> and
> most users have no trouble getting this all to work.
>
> Can you post the steps to boot in safe mode under XP Home?  The choice
> doesn't come up with F2 or F12, do you just hit space bar when it's first
> booting up?
>
> "Steven L Umbach" wrote:
>
>> Try granting users or everyone read permisisons to that folder. In XP
>> Home
>> that can be done by booting into Safe Mode as administrator to see the
>> security tab for a folder or using a command line tool such as the built
>> in
>> cacls. %temp% refers to the documents and settings\username\local
>> settings\temp folder.
>>
>> Steve
>>
>> http://www.ss64.com/nt/cacls.html  -- cacls syntax and examples
>>
>> "scooter" <scoo***@discussions.microsoft.com> wrote in message
>> news:2315524A-BF0B-4F5C-A141-7842642AEB04@microsoft.com...
>> > We have a web application using ActiveX controls that resize and save
>> > photographs to the %temp% directory, then it reads them and posts to
>> > the
>> > server.
>> >
>> > Normally this is fine and only takes a few changes in internet options
>> > to
>> > allow it to work, but, with xp home we have a user where the component
>> > can't
>> > operate, it can't read from the temp directory.
>> >
>> > So my question is how to adjust security on xp home so that an ActiveX
>> > control can read/write to %temp%  ??
>>
>>
>>
Author
25 Oct 2007 2:35 AM
Steve Riley [MSFT]
Scooter, each individual user already has read/write access to his/her own
%temp% folder. You shouldn't have to make any permissions changes. What user
context does your application and your ActiveX control run under?

Show quoteHide quote
"scooter" <scoo***@discussions.microsoft.com> wrote in message
news:2315524A-BF0B-4F5C-A141-7842642AEB04@microsoft.com...
> We have a web application using ActiveX controls that resize and save
> photographs to the %temp% directory, then it reads them and posts to the
> server.
>
> Normally this is fine and only takes a few changes in internet options to
> allow it to work, but, with xp home we have a user where the component
> can't
> operate, it can't read from the temp directory.
>
> So my question is how to adjust security on xp home so that an ActiveX
> control can read/write to %temp%  ??
Author
25 Oct 2007 3:23 PM
scooter
This is a downloaded utility in a CAB file, so it's a browser related ActiveX
control using ADO to stream the images to the server.

It's signed and ends up in the windows/downloadedinternetfiles/ folder.
Javascript is used to invoke methods.

The error is that it can't read from the %temp% directory where the resized
images are. I'll be talking to the user today to find out if the images are
resizing OK (I think they are) and then for sure know that's it's read
permissions.

I'll also keep the safemode trick in mind if I need it ...

Thanks for the replies,

Show quoteHide quote
"Steve Riley [MSFT]" wrote:

> Scooter, each individual user already has read/write access to his/her own
> %temp% folder. You shouldn't have to make any permissions changes. What user
> context does your application and your ActiveX control run under?
>
> --
> Steve Riley
> steve.ri***@microsoft.com
> http://blogs.technet.com/steriley
> http://www.protectyourwindowsnetwork.com
>
>
> "scooter" <scoo***@discussions.microsoft.com> wrote in message
> news:2315524A-BF0B-4F5C-A141-7842642AEB04@microsoft.com...
> > We have a web application using ActiveX controls that resize and save
> > photographs to the %temp% directory, then it reads them and posts to the
> > server.
> >
> > Normally this is fine and only takes a few changes in internet options to
> > allow it to work, but, with xp home we have a user where the component
> > can't
> > operate, it can't read from the temp directory.
> >
> > So my question is how to adjust security on xp home so that an ActiveX
> > control can read/write to %temp%  ??
>
>