in C# is there a managed code example to set ACLs on a folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

in C# is there a managed code example to set ACLs on a folder. We're
currently using the win32api and would like to migrate this functionality to
managed code in C#
 
Hi Daniel!

in C# is there a managed code example to set ACLs on a folder. We're
currently using the win32api and would like to migrate this functionality
to
managed code in C#

"Managed"-code is not available at the moment. .NET 2.0/2005 will offer this
functionality.
There is a collection of .NET classes written in Managed C++ that faciliate
the manipulation of NT security rights which you can use in C#:
http://www.codeproject.com/dotnet/NTSecurityNET.asp

Cheers

Arne Janning
 
Hi Daniel!

in C# is there a managed code example to set ACLs on a folder. We're
currently using the win32api and would like to migrate this functionality
to
managed code in C#

"Managed"-code is not available at the moment. .NET 2.0/2005 will offer this
functionality.
There is a collection of .NET classes written in Managed C++ that faciliate
the manipulation of NT security rights which you can use in C#:
http://www.codeproject.com/dotnet/NTSecurityNET.asp

Cheers

Arne Janning
 
"Managed"-code is not available at the moment. .NET 2.0/2005 will offer
this
functionality.
There is a collection of .NET classes written in Managed C++ that faciliate
the manipulation of NT security rights which you can use in C#:
http://www.codeproject.com/dotnet/NTSecurityNET.asp
This is nice, but can someone show me how to use these classes to determine
if a destination directory has enough access to create subdirectories and
files for the current user?
I probably have to test on this ACL thing and file/directory attributes in
order to figure out if I will be able to write a file in that destination
folder without actually need in trying the write in compination with a
delete.

The classes are powerful, but I miss sample code to understand how to use
it.

Thanks.
 
Hi Olaf!

This is nice, but can someone show me how to use these classes to
determine
if a destination directory has enough access to create subdirectories and
files for the current user?

Have a look at the System.Security.Permissions.FileIOPermission-Class.

Cheers

Arne Janning
 
Hi Olaf!

This is nice, but can someone show me how to use these classes to
determine
if a destination directory has enough access to create subdirectories and
files for the current user?

Have a look at the System.Security.Permissions.FileIOPermission-Class.

Cheers

Arne Janning
 
Back
Top