Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / November 2007

Tip: Looking for answers? Try searching our database.

Accessing DirectorySecurity for local c$ share - 1265 error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Trev - 21 Nov 2007 15:57 GMT
I am using .NET 3.5 and accessing a local share

DirectorySecurity ds = Directory.GetAccessControl("\\\\127.0.0.1\\c$\\test");

But this gives an exception error of 1265

at
System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType
resourceType, Boolean isContainer, String name, SafeHandle handle,
AccessControlSections includeSections, Boolean createByName,
ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext)\r\n  
at System.Security.AccessControl.FileSystemSecurity..ctor(Boolean
isContainer, String name, AccessControlSections includeSections, Boolean
isDirectory)\r\n   at
System.Security.AccessControl.DirectorySecurity..ctor(String name,
AccessControlSections includeSections)\r\n   at
System.IO.Directory.GetAccessControl(String path)\r\n

Any Ideas on how to overcome this?
Dominick Baier - 26 Nov 2007 10:08 GMT
You cannot set/retrieve ACLs for shares - only physical directories

-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

> I am using .NET 3.5 and accessing a local share
>
[quoted text clipped - 17 lines]
>
> Any Ideas on how to overcome this?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.