Hi,

I am trying to make some of my utilities be able to run from limited user account (previously wrote everything to be used on an account with administrator rights). However limited accounts on XP do not allow file creation. Hence the problem...

The only solution I have found by now is either simply run the application as administrator or ask the user for credentials on start. Is there any other way to allow file access from particular limited account?
Posted on 2005-04-23 14:07:01 by arafel
Simple: only write where you're allowed to. Keep registry access to HKCU, and file access to the user's "my documents".
Posted on 2005-04-23 16:54:59 by f0dder
Yes, but what if I need a write access to Program Files folder for example. From limited account it is only readable.
Posted on 2005-04-23 17:15:09 by arafel
Then you either need to run the app as admin, or give the user specific access rights to write to that folder.
Posted on 2005-04-23 17:17:40 by f0dder
So it is as I thought. The possibilities are limited to those two options :(
Posted on 2005-04-23 17:30:24 by arafel
You can ask user for the admin password once, then create all needed folders and set the user as owner of these folders. Then you will be able to change all folder permissions as you want, including write access.
Posted on 2005-04-24 04:02:00 by Arvensis

So it is as I thought. The possibilities are limited to those two options :(

And it's a good thing, really - security and all.
Posted on 2005-04-24 07:39:37 by f0dder
By the way does anyone have an example of working with ACL? I have managed to find only an example for .NET, but can barely understand it.
Posted on 2005-04-24 10:36:10 by arafel