Here is my issue: I have several customers who have locked their employees from having any write access to their local C: drives (probabaly via a Network Policy file). The reason they do this is varied, but mostly to prevent virus spreading and end-user installation of unauthorized applications.
Here is my problem: My application needs to write to the local C: drive for both INI file settings, but more importantly cache files.
Here is my question: How can someone allow the local user to write to just one directory, i.e. C:\MyApp and all of its sub-folders? And can this be set in a network-based policy file?
I don't know if they have write access to the TEMP folder or not, or is this always open anyway?
Thanks in advance for any advice.
Help: user restricted from writing to C: drive
- NoahPhense
- Addict

- Posts: 1999
- Joined: Thu Oct 16, 2003 8:30 pm
- Location: North Florida
Re: Help: user restricted from writing to C: drive
In my corporate environment, I have a few apps that need this type
of access. We just add the permission EVERYONE to the folder and
all children of that folder. Then, everyone who logs in locally will be
able to use this application without worrying about the network policy.
I know it's kind of a rough solution. Because in order to add these
file permissions to the local structures, you yourself must have the
network ability (permission) to do so. Even when I log in as admin
to these workstations, I still can't change file permissions unless
the "network policy" finds my credentials.
- np
of access. We just add the permission EVERYONE to the folder and
all children of that folder. Then, everyone who logs in locally will be
able to use this application without worrying about the network policy.
I know it's kind of a rough solution. Because in order to add these
file permissions to the local structures, you yourself must have the
network ability (permission) to do so. Even when I log in as admin
to these workstations, I still can't change file permissions unless
the "network policy" finds my credentials.
- np
Re: Help: user restricted from writing to C: drive
Why not just write to their "My Documents" folder? That always has write
access per user, so it shouldn't cause any problems for you.
access per user, so it shouldn't cause any problems for you.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
-
dracflamloc
- Addict

- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:
-
Mike Stefanik
- User

- Posts: 53
- Joined: Wed May 03, 2006 6:34 am
- Location: California, United States
- Contact:
Folks using Vista will have a similar issue in that you can't assume that you can write into the same directory where your executable is installed. Generally speaking, the best place to store data is where Windows tells you to: the common and user appdata folders (for configuration and data files), or the personal folder (for documents). Outside of that, you rolls your dices and takes your chances, depending on how the administrator has the system configured.
Mike Stefanik
sockettools.com
sockettools.com



