Hi,
i have a problem - how to save my changes of a directory acl change ?
If i try this :
SecurityObject := FileSecurity(Filename);
SecurityObject.ProtectedDAcl := False;
SecurityObject.DAcl.DeleteItems(Account('Users'));
if SecurityObject.DAcl.IsDirty then
if SecurityObject.DAcl.Flush then
ShowMessage('Fush OK!')
else
ShowMessage('Fush NOT !!!!!!!!!!! OK!');
SecurityObject.DAcl.Flush;
But after FLUSH - the rights are the same ....
What's wrong ? Help please....
BTW: Madshi MadCollection is the best !!
How to SAVE a file security change ?
SACL instead of DACL
I have to use SACL instead of DACL and then it works wonderfull !