简体   繁体   中英

Folder permissions through a web page?

I want a folder on a site where logged-in active directory users can create sub folders and upload images under an "/Uploads" folder off the root. I am able to retrieve the username using System.DirectoryServices.

Is there a way to:

  1. Restrict what is returned from the DirectoryInfo().GetDirectories based on their username

  2. Set permissions on a subfolder of /Uploads (via a web page) to read/write.

You might want to look at this post on how to create folder dynamically at run time

And this post from stackoverflow shows bunch of ways to assign folder permissions. See which one applies

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM