PDA

View Full Version : CSIDL COMMON_APPDATA & XP Limited User Accounts



NewsArchive
01-25-2010, 02:48 AM
Hi Folks

I've just noticed in testing an XP with a std Limited User account setup, my
app can only get read only for any folders underneath CSIDL COMMON_APPDATA.

http://msdn.microsoft.com/en-us/library/bb762494%28VS.85%29.aspx

According to MS I should be able to get write access but I cant.

Anyone else noticed this & any solutions?

One workaround is to change it to use CSIDL_COMMON_DOCUMENTS instead for XP.

Cheers

Richard

NewsArchive
01-25-2010, 02:53 AM
Ok found this previous post

michael d. brooks wrote:

>Where should I be putting files that our software must have
>read/write/modify access to under all types of suer accounts and so the
>files are accesible by all users on a particular computer ?

Mike,

Go with what Friedrich suggested, CSIDL_COMMON_DOCUMENTS.

I found this last night:

http://msdn.microsoft.com/en-us/library/ms995853.aspx

The relevant bit is:

>By default, this location is read-only for normal (non-admin, non-power)
>Users. If an application requires normal Users to have write access to an
>application specific subdirectory of CSIDL_COMMON_APPDATA, then the
>application must explicitly modify the security on that sub-directory
>during
>application setup.

HTH


--
Best regards,

Mark

-------------------------------------------------------------------
Why waste time learning when ignorance is instantaneous?


Richard Rose

NewsArchive
01-25-2010, 02:56 AM
If you have a clarionmag subscription , you might check my articles on the
subject from a couple of years back
(which I think it sad that Dave hasn't included in his Vista e-book :-(
)

http://www.clarionmag.com/cmag/v9/v9n08vista4.html
http://www.clarionmag.com/cmag/v9/v9n08vista4b.html

Jane Fleming

NewsArchive
01-26-2010, 02:22 AM
Thanks Jane!

I was going to change the folder settings using Group Policy but I'm still
humming and arrggghhing on whether to just use Common_Documents with a
hidden folder inside.

After all thats effectively no different to COMMON_APPDATA just a little
less accessible from a user who might be delete-file-happy. <g>

Richard Rose

NewsArchive
01-26-2010, 02:25 AM
> If you have a clarionmag subscription , you might check my articles on the
> subject from a couple of years back
> (which I think it sad that Dave hasn't included in his Vista e-book :-(
> )
>
> http://www.clarionmag.com/cmag/v9/v9n08vista4.html
> http://www.clarionmag.com/cmag/v9/v9n08vista4b.html

AND, in addition to the fine technical written expose of these articles IS

the wonderfully - illustrated with screen shots that make learning a bit
more palatible (I'm almost sure organic grown :-D)

David

--
From David Troxell - Product Scope 7.9 - Encourager Software
Product Scope 7 Viewer - NO Registration Fee! Free to Use!
http://www.encouragersoftware.com/
Clarion Third Party Profile Exchange Online
http://encouragersoftware.com/profile/clarlinks.html
http://www.profileexchanges.com/blog/