ACL To Create and Modify Only New Files?

ACL To Create and Modify Only New Files?

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
ACL To Create and Modify Only New Files? Will 02-03-2008
Posted by Will on February 3, 2008, 8:24 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
What ACL on NTFS will give a group Read-Only access to files currently in
the folder, but the ability to create and modify and delete new files in the
folder?

I have a badly behaved program that wants to write its TEMP files into its
program installation folder. I would like to avoid the more permission
Modify permission to the users of the application on all files in the folder
including the application's binaries.

One solution appears to be to give files currently in the folder the desired
ACL and then break inheritance. Then give Modify access to the folder and
all children. That isn't my first choice since later updates to the
application will probably install new binaries, and this approach leaves
those installed with Modify access inherited from the folder.

--
Will



Posted by Roger Abell [MVP] on February 4, 2008, 1:19 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Hi Will,

Long time no see.

I am guessing that the application runs in the context of the
user running it. In that case, try using a grant to CreatorOwner
of Modify on the base folder and below plus a grant to Users
to create the new (that the grant from the CreatorOwner will
then set with modify for the one user). Just follow the model
used at the root of the system partition to allow Users to
create and use new folders.

If the application uses persistent temp files and it is on a
multi-user machine, this of course will not work.
Otherwise there is the laborious approach you mention or
the equally effort intensive approach of setting a deny of
write on the existing files.
To my awareness there is no straightforward way to do this.

Roger

> What ACL on NTFS will give a group Read-Only access to files currently in
> the folder, but the ability to create and modify and delete new files in
> the folder?
>
> I have a badly behaved program that wants to write its TEMP files into its
> program installation folder. I would like to avoid the more permission
> Modify permission to the users of the application on all files in the
> folder including the application's binaries.
>
> One solution appears to be to give files currently in the folder the
> desired ACL and then break inheritance. Then give Modify access to the
> folder and all children. That isn't my first choice since later updates
> to the application will probably install new binaries, and this approach
> leaves those installed with Modify access inherited from the folder.
>
> --
> Will
>



Posted by Will on February 4, 2008, 9:18 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
> Long time no see.
>
> I am guessing that the application runs in the context of the
> user running it. In that case, try using a grant to CreatorOwner
> of Modify on the base folder and below plus a grant to Users
> to create the new (that the grant from the CreatorOwner will
> then set with modify for the one user). Just follow the model
> used at the root of the system partition to allow Users to
> create and use new folders.
>
> If the application uses persistent temp files and it is on a
> multi-user machine, this of course will not work.
> Otherwise there is the laborious approach you mention or
> the equally effort intensive approach of setting a deny of
> write on the existing files.
> To my awareness there is no straightforward way to do this.

Hi Roger. It's not that I didn't have questions in all this time. I guess
I'm just taming my ambitions. :)

What you suggest makes sense in general, but I don't find an attribute for
just creating new files. The closest attribute is "Create Files / Write
Data". And that sounds suspiciously like a permission to both create new
files but also to modify existing ones. If it is not, then which attribute
would give the ability to modify existing files? It's really a shame that
Microsoft didn't make each part of that a separate attribute.

--
Will



>> What ACL on NTFS will give a group Read-Only access to files currently in
>> the folder, but the ability to create and modify and delete new files in
>> the folder?
>>
>> I have a badly behaved program that wants to write its TEMP files into
>> its program installation folder. I would like to avoid the more
>> permission Modify permission to the users of the application on all files
>> in the folder including the application's binaries.
>>
>> One solution appears to be to give files currently in the folder the
>> desired ACL and then break inheritance. Then give Modify access to the
>> folder and all children. That isn't my first choice since later
>> updates to the application will probably install new binaries, and this
>> approach leaves those installed with Modify access inherited from the
>> folder.
>>
>> --
>> Will



Posted by Roger Abell [MVP] on February 5, 2008, 1:13 am
If you were  Registered and logged in, you could reply and use other advanced thread options
>> Long time no see.
>>
>> I am guessing that the application runs in the context of the
>> user running it. In that case, try using a grant to CreatorOwner
>> of Modify on the base folder and below plus a grant to Users
>> to create the new (that the grant from the CreatorOwner will
>> then set with modify for the one user). Just follow the model
>> used at the root of the system partition to allow Users to
>> create and use new folders.
>>
>> If the application uses persistent temp files and it is on a
>> multi-user machine, this of course will not work.
>> Otherwise there is the laborious approach you mention or
>> the equally effort intensive approach of setting a deny of
>> write on the existing files.
>> To my awareness there is no straightforward way to do this.
>
> Hi Roger. It's not that I didn't have questions in all this time. I
> guess I'm just taming my ambitions. :)
>

Then now you are ready for a welcome to Windows land. <g>
I seem to recall a similar wake-up after my being assigned
(from Unix land) to learn how NT would fit in our shop.

> What you suggest makes sense in general, but I don't find an attribute for
> just creating new files. The closest attribute is "Create Files / Write
> Data". And that sounds suspiciously like a permission to both create new
> files but also to modify existing ones. If it is not, then which
> attribute would give the ability to modify existing files? It's really a
> shame that Microsoft didn't make each part of that a separate attribute.
>

When you look in the advanced view the descriptions for the
individual ACEs have two parts separated by / char. On the
left is what the ACE means applied to a directory, on the right
what it means applied to a file. So, selection of that ACE and
in the dropbox set to This folder only allows only creating new
files in that directory (similarly applied to This folder and subs).

I think this could be seen as artifact of the era when designed
and all bits added up to significant cost, so something like a
double word is all that was allocated for all ACE flags, and
a couple of them for indication of applicability to objects and/or
container objects.

Roger

>
>>> What ACL on NTFS will give a group Read-Only access to files currently
>>> in the folder, but the ability to create and modify and delete new files
>>> in the folder?
>>>
>>> I have a badly behaved program that wants to write its TEMP files into
>>> its program installation folder. I would like to avoid the more
>>> permission Modify permission to the users of the application on all
>>> files in the folder including the application's binaries.
>>>
>>> One solution appears to be to give files currently in the folder the
>>> desired ACL and then break inheritance. Then give Modify access to the
>>> folder and all children. That isn't my first choice since later
>>> updates to the application will probably install new binaries, and this
>>> approach leaves those installed with Modify access inherited from the
>>> folder.
>>>
>>> --
>>> Will
>
>



Posted by Will on February 5, 2008, 9:03 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
>> What you suggest makes sense in general, but I don't find an attribute
>> for just creating new files. The closest attribute is "Create Files /
>> Write Data". And that sounds suspiciously like a permission to both
>> create new files but also to modify existing ones. If it is not, then
>> which attribute would give the ability to modify existing files? It's
>> really a shame that Microsoft didn't make each part of that a separate
>> attribute.
>>
>
> When you look in the advanced view the descriptions for the
> individual ACEs have two parts separated by / char. On the
> left is what the ACE means applied to a directory, on the right
> what it means applied to a file. So, selection of that ACE and
> in the dropbox set to This folder only allows only creating new
> files in that directory (similarly applied to This folder and subs).

Aha.... I think I just evolved. Thank you. :)


> I think this could be seen as artifact of the era when designed
> and all bits added up to significant cost, so something like a
> double word is all that was allocated for all ACE flags, and
> a couple of them for indication of applicability to objects and/or
> container objects.

Regardless of how badly they overloaded the implementation, the user
interface of the Advanced Security Settings dialog for ACLs is fairly awful.
It's way too compressed to easily pull out the explanation you gave just
from usage. And in general the fact that the implementation is overloaded
is not a great reason to overload the user interface in a parallel fashion.

--
Will



Similar ThreadsPosted
Modify/Write Permissions on Files & Folders July 13, 2005, 3:51 pm
Re: Set all files on Windows XP to a specified create & access date October 7, 2005, 9:43 pm
how to modify ACL for cd-rom and floppy? April 3, 2007, 6:47 am
Modify Print Permission Level rights September 28, 2006, 12:12 pm
read/modify port 113 Ident content? December 2, 2006, 3:29 pm
Novell equal modify rights in windows standard server 2003 March 5, 2006, 1:43 am
Who and how can create users besides administrator? October 26, 2005, 1:23 pm
How to create an ADF file for Windows May 1, 2006, 12:06 pm
create my own forum free? April 20, 2007, 9:13 pm
How do I create a service account? August 6, 2007, 5:20 pm

The site map in XML format XML site map

Contact Us | Privacy Policy