🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1539

Is CSIDL_COMMON_APPDATA read-only for some users ?

#1539
From: Kris
Date: Mon, 30 Jul 2007 11:04
28 lines
2237 bytes
My application stores data that needs to be accessible for all users on 
the system. Each users must also be able to update this shared data.

For this purpose I'm use the CSIDL_COMMON_APPDATA location (e.g. on XP 
this is C:\Documents and Settings\All Users\Application Data). This 
works great for me. However, while googling I found several references 
where this folder is sometimes read-only.

MSDN shows me this:
http://msdn2.microsoft.com/en-us/library/ms995853.aspx
"CSIDL_COMMON_APPDATA: This folder should be used for application data 
that is not user specific. 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."

Strangely enough, I tried to reproduce this problem both on XP and Vista 
by using a non-admin user. But I never encountered a problem writing to 
this folder (even using Windows Explorer as limited user still allowed 
full write-access to CSIDL_COMMON_APPDATA).

So, I was wondering if someone has any experience with write permission 
issues in CSIDL_COMMON_APPDATA when dealing with different user accounts?

Thanks,

Kris
Technical Details
Message-ID: <46adc5ec$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c3abf88ccc8026f2,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 30 Jul 2007 13:04:25 +0200
From: Kris <test@test.com>
User-Agent: Thunderbird 2.0.0.5 (Windows/20070716)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Is CSIDL_COMMON_APPDATA  read-only for some users ?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.242.6.168
Message-ID: <46adc5ec$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1185793516 81.242.6.168 (30 Jul 2007 04:05:16 -0700)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 2083