Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Effective Access results differ from the Explorer GUI #45

Open
mwtrigg opened this issue Feb 26, 2019 · 4 comments
Open

Effective Access results differ from the Explorer GUI #45

mwtrigg opened this issue Feb 26, 2019 · 4 comments
Assignees
Labels
Question Someone has a question about feature or usability

Comments

@mwtrigg
Copy link

mwtrigg commented Feb 26, 2019

When querying effective permissions using the Get-NTFSEffectiveAccess function the results displayed for a particular account differ from those displayed when running the graphical tool in Windows Explorer.

This occurs when checking permissions over a UNC path (have not checked locally), through a DFS namespace, directly to a Windows CIFS share, and to a CIFS share hosted on a NetApp CIFS server.

Running NTFSSecurity 4.2.4


shell
gui

@raandree raandree self-assigned this Jul 10, 2019
@raandree raandree added the Question Someone has a question about feature or usability label Jul 10, 2019
@raandree
Copy link
Owner

Thanks @mwtrigg. I have just tried to repo it and created a share on a Windows File Server. The Windows Explorer shows the effective access like this:

image

In my case, the cmdlet returns the effective access like expected.

PS C:\> Get-NTFSEffectiveAccess \\dscpull01\test\Test1\ -Account contoso\User1 | fl *


AccountType        : user
Name               :
FullName           : \\dscpull01\test\Test1\
InheritanceEnabled : False
InheritedFrom      :
AccessControlType  : Allow
AccessRights       : ReadAndExecute, Synchronize
Account            : contoso\User1
InheritanceFlags   : None
IsInherited        : False
PropagationFlags   : None

Am I doing something wrong reproducing your issue?

@raandree
Copy link
Owner

@mwtrigg, I do not see the error in the Windows Explorer dialog. It the Windows Explorer really showing the right result?

@mwtrigg
Copy link
Author

mwtrigg commented Jul 10, 2019

The error in Windows explorer is because I was running effective permissions on a remote file share as I had stated above. That is the standard message when doing so; the warning is only really relevant if remote local groups are in use in the SACL

The Effective permissions reported in the GUI are correct, my user account has no access to that share.

Can you reproduce the results if the user in question has no access to the share?

@raandree
Copy link
Owner

I have removed all permissions expect for SYSTEM

PS C:\> Get-NTFSAccess -Path \\dscpull01\Test\Test1

    Path: \\dscpull01\Test\Test1 (Inheritance disabled)

Account                             Access Rights                 Applies to                Type                          IsInherited                   InheritedFrom                
-------                             -------------                 ----------                ----                          -----------                   -------------                
NT AUTHORITY\SYSTEM                 FullControl                   ThisFolderSubfoldersAn... Allow                         False                                                      

Get-NTFSEffectiveAccess shows me that User1 has only the synchronize right.

PS C:\> Get-NTFSEffectiveAccess -Path \\dscpull01\Test\Test1 -Account contoso\user1


    Path: \\dscpull01\Test\Test1 (Inheritance disabled)


Account                             Access Rights                 Applies to                Type                          IsInherited                   InheritedFrom                
-------                             -------------                 ----------                ----                          -----------                   -------------                
contoso\User1                       Synchronize                   ThisFolderOnly            Allow                         False                                     

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Someone has a question about feature or usability
Projects
None yet
Development

No branches or pull requests

2 participants