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. NTUser Folder and File Access Rules

NTUser Folder and File Access Rules

Scheduled Pinned Locked Moved System Admin
question
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.
  • G Offline
    G Offline
    Glen Harvy 0
    wrote on last edited by
    #1

    Hi, I am programmatically adding an Access Rule to a file for BUILTIN\Users and giving them Full Control. The same file also inherits from it's folder an Access Rule for BUILTIN\Users with lower control levels. My Question is, you can apparently set as many rules as there are combinations for a NTUser BUT which one will apply? Hopefully in the above case, Full Control will be granted. My second question - will the same apply to folders. Thanks, Glen

    Glen Harvy

    G 1 Reply Last reply
    0
    • G Glen Harvy 0

      Hi, I am programmatically adding an Access Rule to a file for BUILTIN\Users and giving them Full Control. The same file also inherits from it's folder an Access Rule for BUILTIN\Users with lower control levels. My Question is, you can apparently set as many rules as there are combinations for a NTUser BUT which one will apply? Hopefully in the above case, Full Control will be granted. My second question - will the same apply to folders. Thanks, Glen

      Glen Harvy

      G Offline
      G Offline
      green2go
      wrote on last edited by
      #2

      Hi Glen, If my memories of MS FS training serve me correctly deny takes precedence over all other permissions (even if you add explicit allow full control permissions to an object). The same is true for folders. For example, BULITIN\Joe has allow read-only permissions for a folder named ‘test’. The folder ‘test’ has a file within it which is inheriting permissions. You then add a permission to the file to allow him full control. The result will be that Joe will have full control as the inherited permission will be superseded by the explicit permission. However, if the allow read-only permission in the example above was changed to deny, the allow full control permission set on the object would be superdeded by the deny permission. KR Oliver

      Posting Guidelines | Blog of the month

      G 1 Reply Last reply
      0
      • G green2go

        Hi Glen, If my memories of MS FS training serve me correctly deny takes precedence over all other permissions (even if you add explicit allow full control permissions to an object). The same is true for folders. For example, BULITIN\Joe has allow read-only permissions for a folder named ‘test’. The folder ‘test’ has a file within it which is inheriting permissions. You then add a permission to the file to allow him full control. The result will be that Joe will have full control as the inherited permission will be superseded by the explicit permission. However, if the allow read-only permission in the example above was changed to deny, the allow full control permission set on the object would be superdeded by the deny permission. KR Oliver

        Posting Guidelines | Blog of the month

        G Offline
        G Offline
        Glen Harvy 0
        wrote on last edited by
        #3

        Hi Oliver, First, my sincere thanks for responding. I have delayed answering because I wanted to look further into this and do some testing. As you can see from the following, you can have different permissions for the same NTUser Account: 2009-03-26 17:12:51.6832 TestVista.Form1 Captured the ------------ BUILTIN\Users 2009-03-26 17:12:51.6832 TestVista.Form1 IdentityReference.Value: BUILTIN\Users 2009-03-26 17:12:51.6832 TestVista.Form1 AccessControlType: Allow 2009-03-26 17:12:51.6832 TestVista.Form1 FileSystemRights: FullControl 2009-03-26 17:12:51.6832 TestVista.Form1 InheritanceFlags: ContainerInherit, ObjectInherit 2009-03-26 17:12:51.6832 TestVista.Form1 IsInherited: False 2009-03-26 17:12:51.6832 TestVista.Form1 PropagationFlags: None <--> 2009-03-26 17:12:51.6832 TestVista.Form1 Captured the ------------ BUILTIN\Users 2009-03-26 17:12:51.6832 TestVista.Form1 IdentityReference.Value: BUILTIN\Users 2009-03-26 17:12:51.6832 TestVista.Form1 AccessControlType: Allow 2009-03-26 17:12:51.6832 TestVista.Form1 FileSystemRights: ReadAndExecute, Synchronize 2009-03-26 17:12:51.6832 TestVista.Form1 InheritanceFlags: ContainerInherit, ObjectInherit 2009-03-26 17:12:51.6832 TestVista.Form1 IsInherited: True 2009-03-26 17:12:51.6832 TestVista.Form1 PropagationFlags: None 2009-03-26 17:12:51.6832 TestVista.Form1 Captured the ------------ BUILTIN\Users 2009-03-26 17:12:51.6832 TestVista.Form1 IdentityReference.Value: BUILTIN\Users 2009-03-26 17:12:51.6832 TestVista.Form1 AccessControlType: Allow 2009-03-26 17:12:51.6832 TestVista.Form1 FileSystemRights: AppendData 2009-03-26 17:12:51.6832 TestVista.Form1 InheritanceFlags: ContainerInherit 2009-03-26 17:12:51.6832 TestVista.Form1 IsInherited: True 2009-03-26 17:12:51.6832 TestVista.Form1 PropagationFlags: None 2009-03-26 17:12:51.6832 TestVista.Form1 Captured the ------------ BUILTIN\Users 2009-03-26 17:12:51.6832 TestVista.Form1 IdentityReference.Value: BUILTIN\Users 2009-03-26 17:12:51.6832 TestVista.Form1 AccessControlType: Allow 2009-03-26 17:12:51.6832 TestVista.Form1 FileSystemRights: CreateFiles 2009-03-26 17:12:51.6832 TestVista.Form1 InheritanceFlags: ContainerInherit 2009-03-26 17:12:51.6832 TestVista.Form1 IsInherited: True 2009-03-26 17:12:51.6832 TestVista.Form1 PropagationFlags: None This at first confused me immensely but your comments and my searching has helped me understand a lot more. First, explicitly set permissions override inherited permissions, deny

        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