Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo

  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

 
Previous Posts
    - Get network status through WMI
    - Big red cross in DataGrid.. ?
    - Check Windows Services are still running OK
    - Monitor mouse events in application
    - Project deploy
    - Pull Non-VB.net program into focus and send keys.
    - VERY weird variable behavior
    - How can i return a icon image of a file through op...
    - non-shared member of a class
    - Visual Studio Hangs when New Project invoked

Archives
    - 10/03/2004 - 10/10/2004
    - 10/10/2004 - 10/17/2004
    - 10/17/2004 - 10/24/2004
    - 10/24/2004 - 10/31/2004
    - 10/31/2004 - 11/07/2004
    - 11/21/2004 - 11/28/2004
    - 11/28/2004 - 12/05/2004
    - 12/05/2004 - 12/12/2004
    - 12/12/2004 - 12/19/2004
    - 12/19/2004 - 12/26/2004
    - 12/26/2004 - 01/02/2005
    - 01/23/2005 - 01/30/2005
    - 01/01/2006 - 01/08/2006
    - 09/24/2006 - 10/01/2006

Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland