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. Database & SysAdmin
  3. System Admin
  4. Setting file/dir security ?

Setting file/dir security ?

Scheduled Pinned Locked Moved System Admin
securityoophelptutorialquestion
1 Posts 1 Posters 1 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.
  • M Offline
    M Offline
    mirex
    wrote on last edited by
    #1

    Im on w2k/ntfs, and i would like to set file/dir access permissions, but it just won't work like i imagine. Im using SetFileSecurity(), and i also tried SetSecurityInfo(), but with both i could not set the rights like i set them when i click on the checkboxes in file properties dialogs. Mainly i missed how to set property that it would inherit to "This folder, subfolders and files" instead of only "This folder". Can anyone help me, or point to some article ? thanks in advance cheers mirex -- edit -- Now i found how to do it, it can be done when adding ACL record by SetEntriesInAcl(); you can specify inheritance in EXPLICIT_ACCESS structure :)

    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