Search found 20 matches

by Mark-
Tue May 17, 2016 6:20 pm
Forum: madSecurity
Topic: Set permissions...
Replies: 18
Views: 34463

Re: Set permissions...

>That's why there's a "Clear" in my original code, which should completely empty the DACL, so that only Everyone is in it afterwards.

Clear does not delete:

Authenticated users
System
Administrators
Users
by Mark-
Tue May 17, 2016 6:08 pm
Forum: madSecurity
Topic: Set permissions...
Replies: 18
Views: 34463

Re: Set permissions...

Yeah it appears: SetFileAccess(Everyone, false); Adds the group "Everyone" and sets the permissions. Also the permissions are applied to the "Users" group. The "Administrators" group is not altered. I tried: iso.DAcl.SetFileAccess(Account('Administrators'),false); iso.D...
by Mark-
Tue May 17, 2016 5:41 pm
Forum: madSecurity
Topic: Set permissions...
Replies: 18
Views: 34463

Re: Set permissions...

Thanks > Of course there are other alternatives, from API hooking to writing kernel mode file system filter drivers. But that sounds like overkill to me. I concur. The file deletion mistake has only happened with a couple of users but, if I can code something (in my program) to prevent the deletion ...
by Mark-
Tue May 17, 2016 5:23 pm
Forum: madSecurity
Topic: Set permissions...
Replies: 18
Views: 34463

Re: Set permissions...

Hello, Thank you. You wrote "I suppose so." Do you know of any method to make it harder for a user to delete a file? I had to add flush to get a change. with FileSecurity('c:\someFolder\someFile.dat'), DAcl do begin ProtectedDAcl := false; Clear; SetFileAccess(Everyone, false); Flush; <---...
by Mark-
Tue May 17, 2016 4:22 pm
Forum: madSecurity
Topic: Set permissions...
Replies: 18
Views: 34463

Set permissions...

Hello, I have searched, without joy, for code (using MadSecurity) to set the permissions on one file. We have one file that is used for licensing. If the user deletes the file (by accident) it causes trouble and takes time to get it replaced. I want to set permissions on the file, for all groups/use...