.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 24th, 2009, 10:41 AM
Optimum Optimum is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2002
Posts: 533 Optimum User rank is Sergeant Major (2000 - 5000 Reputation Level)Optimum User rank is Sergeant Major (2000 - 5000 Reputation Level)Optimum User rank is Sergeant Major (2000 - 5000 Reputation Level)Optimum User rank is Sergeant Major (2000 - 5000 Reputation Level)Optimum User rank is Sergeant Major (2000 - 5000 Reputation Level)Optimum User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 51 m 14 sec
Reputation Power: 31
Send a message via AIM to Optimum
AccessControlEntry (ACE) Help

Hey all,

I have a thread going in the C forum but this is probably a better place. I'm developing an application that will allow someone to view all the access permissions on a directory and modify them. This is proving to be very difficult. I have the following code in C#.net 3.5

Code:
// Load directory information
DirectorySecurity myDirectorySecurity = Directory.GetAccessControl(path);
// Obtain the access control list (ACL)
AuthorizationRuleCollection ACL = myDirectorySecurity.GetAccessRules(true, true, typeof(System.Security.Principal.NTAccount));
// Go thru each access control entry (ACE) in the ACL
foreach (AuthorizationRule ACE in ACL)
{
    MessageBox.Show(ACE.IdentityReference.ToString());
}


That will show the name of the group/user that has permissions on the directory. However, I cannot access much else. For example, I need to know WHAT permissions each user/group has on the folder but the AuthorizationRule class has no such method. Is there any hope for me? Thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > AccessControlEntry (ACE) Help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek