Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Folder Security

Reply
Thread Tools

Folder Security

 
 
cct
Guest
Posts: n/a
 
      07-08-2003
Hi all,

I am having difficulty in retrieving the file / folder permission in current
context user.
for eg, GetDirectories() method will return all the folders,
Is there any way to return only folder / files which the user has
permission?

thanks.


 
Reply With Quote
 
 
 
 
Alek Davis
Guest
Posts: n/a
 
      07-08-2003
I do not think that it is possible to do in .NET. By the way, which
permission are you talking about: read, write, execute, list folder
contents, delete, etc? If you really need this functionality and have time
to invest, you can write a DLL or COM object which uses native Win32 API to
check if current user has a desired access permission to a specific file
folder. The following samples can help you get started:
http://www.freevbcode.com/ShowCode.Asp?ID=4318
(http://www.vbcity.com/forums/faq.asp...stem&#TID16545) and
http://www.pardesiservices.com/softo...ccesscheck.asp.

Alek

"cct" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi all,
>
> I am having difficulty in retrieving the file / folder permission in

current
> context user.
> for eg, GetDirectories() method will return all the folders,
> Is there any way to return only folder / files which the user has
> permission?
>
> thanks.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Browse to Folder instead of Folder + File Dan ASP .Net 7 10-28-2010 07:39 AM
For share a folder in the network , but the folder only allow by password holder MCSE 55 04-14-2004 11:56 PM
_vti_cnf folder in the bin folder-- a problem? William LaMartin ASP .Net 1 11-10-2003 03:41 AM
help: setting web folder as application folder in server THY ASP .Net 3 10-16-2003 01:18 AM
IT-Security, Security, e-security COMSOLIT Messmer Computer Support 0 09-05-2003 08:34 AM



Advertisments