NTFS Folder Permissions
(Tuesday, December 21, 2004)
Found the following interesting discussion in the Newsgroups:
NTFS Folder Permissions by:Joey
| Hey, How can I add/edit/delete Folder NTFS permissions in .NET? I have a Win2K Box, and WMI is not installed on my servers Thanks ahead!
-- Joey
| | | Reply: by:Arne Janning
| | | Hi Joey,
HOW TO: Programmatically Set NTFS File System Folder Permissions by Using Microsoft Visual Basic .NET
http://support.microsoft.com/?scid=818362
Cheers
Arne Janning
| | | Reply: by:Joey
| | | Hey Arne, Thanks for replying! I'v seen this code, but it doesnt compile - all the const-like parameters there (in example: ADS_SID_SDDL) are undefined... If you could edit that code and give me a working sample that'd be greate! Thanks ahead,
--Joey
| | | Reply: by:Arne Janning
| | | Hi Joey,
I looked over the code of the MS-HowTo and I think that there are better and more .NET-like ways to do this:
http://www.codeproject.com/dotnet/NTSecurityNET.asp
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=e6098575-dda0-48b8-9abf-e0705af065d9
Cheers
Arne Janning
|
|
0 Comments:
Post a Comment