|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
IDentifiy user acl on a folder ????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 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 serge calderara wrote:
> Dear all, For great resources on programming Windows security from .Net 2.0 see:> > 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 serge calderara wrote:
> Dear all, For great resources on programming Windows security from .Net 2.0 see:> > 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 http://pluralsight.com/wiki/default.aspx/Keith.GuideBook.HomePage Jesse Houwing
Need advise...
Import SIMPLEBLOB session key into .NET? [assembly: SecurityPermission] question Trust relationship exception Help : Access denied ??? Bad Data with DES Decryption Active Directory and ASP.NET 2.0 permission for socket access https and httplistener Microsoft CryptoAPI CSP Availability |
|||||||||||||||||||||||