How to change the ACLs from c++?
Can anyone help me to do the following from c++ without any confirmations:
cacls c:\\personal\\file.txt /d everyone
I assume you mean on a Windows system? You need to use the NTFS part of the Win32 API, which is what cacls uses. Browse through MSDN, it'll be in there somewhere. Eg SetSecurityInfo