all groups > dotnet security > june 2006 >
You're in the

dotnet security

group:

IDentifiy user acl on a folder ????


IDentifiy user acl on a folder ???? serge calderara
6/22/2006 5:53:01 AM
dotnet security:
Dear all,

How can I identify if the current logged in user have WRITE access on
aprticular folder ? then if it not the case force it to have it

thanks for your answer
regards
Re: IDentifiy user acl on a folder ???? Dominick Baier [DevelopMentor]
6/22/2006 4:08:22 PM
what do you mean with "force it to have it" ?

Unfortunately .NET does not wrap the functionality of the "effective permissions"
tab in the ACL dialog. But you can *try* to write to that folder and catch
the eventual exception (not very elegant but works) - or

wrap the AuthZ API yourself which lets you check such stuff.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

[quoted text, click to view]

Re: IDentifiy user acl on a folder ???? Jesse Houwing
7/3/2006 11:05:35 PM
[quoted text, click to view]

Re: IDentifiy user acl on a folder ???? Jesse Houwing
7/3/2006 11:05:48 PM
[quoted text, click to view]

For great resources on programming Windows security from .Net 2.0 see:
http://pluralsight.com/wiki/default.aspx/Keith.GuideBook.HomePage

AddThis Social Bookmark Button