Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Setting file / folder permissions

Setting file / folder permissions

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsecurityquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ehuysamer
    wrote on last edited by
    #1

    Hi there I need to set file & folder permissions [Read/Write] from an ASP.NET application (the application will set the permissions at the same time that it creates the files and folders) Files are on a remote store Authentication will be via AD Any advice?

    M 1 Reply Last reply
    0
    • E ehuysamer

      Hi there I need to set file & folder permissions [Read/Write] from an ASP.NET application (the application will set the permissions at the same time that it creates the files and folders) Files are on a remote store Authentication will be via AD Any advice?

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, IMHO, you can use the class[^] to execute the cacls.exe tool to grant the permissions on a specific folder. However, there are a couple of things that you might take into account: + The ASP.NET process identity may need the right permission to call the cacls.exe. + The generated folder may inherit the permissions from the parent folder. This link[^] can give you more information.

      E 1 Reply Last reply
      0
      • M minhpc_bk

        Hi there, IMHO, you can use the class[^] to execute the cacls.exe tool to grant the permissions on a specific folder. However, there are a couple of things that you might take into account: + The ASP.NET process identity may need the right permission to call the cacls.exe. + The generated folder may inherit the permissions from the parent folder. This link[^] can give you more information.

        E Offline
        E Offline
        ehuysamer
        wrote on last edited by
        #3

        Thanks!!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups