Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > File permissions - append only

File permissions - append only

Forum Windows XP : Windows XP General Discussion - File permissions - append only

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.basics (More info?)

 

File permissions
I want to know how to make a file "append only" ( and read, but that is no
problem)
The "append data" setting seems useless, or at least I cannnot get it to work.

If I have "write data" allowed, I can open a file for write, read/write,
append, or append/read and write successfully.
(I am doing this in C with fopen("filename", "w" ) and "w+", "a", "a+"
parameters )
If I have "write data" denied, I cannot open the file in any of these modes.
The windows API for CREATEFILE mirrors the information as shown in msdn for
the various permissions.
I am left wondering just what the append setting does ...


I want to set a log file so that the users can append to it but not alter
the contents that already exist (i.e. append only) but do not see a way to
make it work.

Happy holidays,
-Mark

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > File permissions - append only
Go to:

There are 1379 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them