프로그래밍

How to handle Windows DACL and SACL (SecurityAttribute Structure)

Mesia 2015. 5. 27. 08:43

 

2015-05-27(Wed) WinFileSystem(File Permission).zip

:: 파일 속성 > 보안탭 > 사용자 그룹에서 사용자별 권한(Permission)이 설정되어 있는 것을 확인할 수 있다.

 

Users 사용자에게 특정 파일의 접근, 읽기 쓰기 권한을 설정해 보자.

 

Codeproject Site: http://www.codeproject.com/Articles/8913/Using-Access-Control-Lists-to-secure-access-to-you

https://msdn.microsoft.com/en-us/library/windows/desktop/aa379583(v=vs.85).aspx

http://kukuta.tistory.com/154

// Create our DACL CAccessControlList acl; acl.Allow(_T("EveryOne")); acl.Deny(_T("stan")); // Now create a SECURITY ATTRIBUTES object and // set the DACL to the ACL we just created. CAccessAttributes aa(&acl); ::CreateFile(filename, desiredAccess, shareMode, &aa, ...);

 

2015-05-27(Wed) WinFileSystem(File Permission).zip
1.67MB