Home All Groups Group Topic Archive Search About

IDentifiy user acl on a folder ????

Author
22 Jun 2006 12:53 PM
serge calderara
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
serge

Author
22 Jun 2006 4:08 PM
Dominick Baier [DevelopMentor]
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

Show quoteHide quote
> 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
> serge
Author
3 Jul 2006 9:05 PM
Jesse Houwing
serge calderara wrote:
> 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
> serge

For great resources on programming Windows security from .Net 2.0 see:
Author
3 Jul 2006 9:05 PM
Jesse Houwing
serge calderara wrote:
> 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
> serge

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

Jesse Houwing