Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Mar : Programmatically change NTFS permissions
| Subject: | Programmatically change NTFS permissions |
| Posted by: | "Chazza" (chaz..@null) |
| Date: | Sun, 20 Mar 2005 21:48:37 |
Hello,
Can somebody please explain the easiest/simplest way to use
SetFileSecurity() to do what I want.
At install time, my app create a folder under %SYSTEM32%. By default,
only Power Users and Administrators can create files in this folder.
However 'Users' also need to be able to create files in this folder. The
folder is used to store central logs and can't easily be moved to 'All
Users'.
How do I write some code which can add 'Everyone' with the Write or
Create File permissions to solve this problem? This will be run during
install to adjust the permissions.
Regards,
Chazza