Append only files (append Data permission)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to set permissions on a file (for most users) so that it is append
only.

For testing/development purposes I created a dummy file where I ...
1) I've broken the inheritence chain between this file and its parent
directory, copying the original ones over.
2) For my personal permissions on the file, I started with "full
permissions", but unchecked "Create files/ Write data". Naturally "full
control" was unchecked when I applied.
3) verified that my effective permissions were what I expected

I find that I am not able to modify the file at all. Using notepad and and
word and textpad, I can open the file and edit it, but not save (even when
I'm only attempting to append data). The all beleive the file is read only.

I tried programatically using c# but I'm unable to open any type of stream
on it. I always get access denied This is ultimately what I want to use
anyway to keep expanding a log file. that then can see but not edit

On a lark I even tried using dos copy command to append and that also gave
me access denied.

So either I'm not setting the permissions right, I don't understand how they
work, or it doesnt' work. Or I suppose I need a smarter "tool" that knows
how to append to a "apparenlty read only" file. Can anyone guide me about
how to effectively use the "Append Data" permission?

There are more complicated schemes I can use to get the same effect, but
this seems so much simpler if it works.

Thanks,
Roger
 
Reading my original post, I find it helpful to note that while I've unchecked
"Create Files/Write Data", I still have "Create folders/Append Data" checked.
From the KB articles, this would seem to be suffificient.

Roger
 
Back
Top