- Code: Select all
With FileSecurity(Path).DACL do
begin
Clear;
NewItem(Account('S-1-5-11'), GENERIC_All, atAllowed, [afObjectInherit, afContainerInherit]);
end;
I am able to set full rights with this code but I need to limit the users to have only read/write access.
I need the security to be like this.
