Skip to content

Permission change doesn't take effect #25

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

Closed
lbd-jyskebank-dk opened this issue May 17, 2018 · 5 comments
Closed

Permission change doesn't take effect #25

lbd-jyskebank-dk opened this issue May 17, 2018 · 5 comments
Labels
bug The issue is a bug.

Comments

@lbd-jyskebank-dk
Copy link

Hi

I have created a share with xSmbShare and in NOAcces had "users"

Recently wanted to change Noaccess to "" and move "users" to ReadAccess, and allthough the Verbose runs says that the Set script i running, the share maintanes Noaccess for users, and completly ignores the newly added Read access

Seems like the script is trying to modify access, but it doesn't take effect.

PSVersion 5.1
xSmbShare 2.0.0
Server 2012 R2

@johlju
Copy link
Member

johlju commented May 17, 2018

Could you please provide your configuration and verbose output? Obfuscate any sensitive information.

@johlju johlju added the needs more information The issue needs more information from the author or the community. label May 17, 2018
@lbd-jyskebank-dk
Copy link
Author

lbd-jyskebank-dk commented May 17, 2018

Hey,
The new config should be this.

xSmbShare WWWRootShare
        {

          Ensure = 'Present'
          Name   = "WWWRoot"
          Path = "c:\inetpub\wwwroot" 
          Description = "Share til WWWroot"
          FullAccess = "BUILTIN\Administrators", "NT AUTHORITY\SYSTEM"
          ReadAccess = "BUILTIN\Users" #skal slås fra når GDPR er klar
          # NoAccess = "BUILTIN\Users" Skal slås til når GDPR er klar
          DependsOn = "[WindowsFeature]WebCommonHTTP"                   
        }

Old setting was

xSmbShare WWWRootShare
        {

          Ensure = 'Present'
          Name   = "WWWRoot"
          Path = "c:\inetpub\wwwroot" 
          Description = "Share til WWWroot"
          FullAccess = "BUILTIN\Administrators", "NT AUTHORITY\SYSTEM"          
          NoAccess = "BUILTIN\Users" 
          DependsOn = "[WindowsFeature]WebCommonHTTP"                   
        }

Unfortunatly i cant get the VERBOSE anymore as my servicewindow to the server has ended.

But it rans the SET script and wrote messages like:
setting rights FULL to "BUILTIN\Administrators", "NT AUTHORITY\SYSTEM"
Setting rights READ to "BUILTIN\Users"

@johlju johlju added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. and removed needs more information The issue needs more information from the author or the community. labels May 18, 2018
@johlju
Copy link
Member

johlju commented May 18, 2018

Thanks for the old and new configuration! Helps a lot! I labeled this as help wanted so that someone in the community can run with this.

@johlju
Copy link
Member

johlju commented Mar 30, 2019

To remove the permission I think we need to use an empty collection. Although not sure it works. I will look into this issue when the resource is moved to ComputerManagementDsc.

xSmbShare WWWRootShare
{
    Ensure = 'Present'
    Name   = "WWWRoot"
    Path = "c:\inetpub\wwwroot" 
    Description = "Share til WWWroot"
    FullAccess = "BUILTIN\Administrators", "NT AUTHORITY\SYSTEM"          
    NoAccess = "BUILTIN\Users" 
    ReadAccess = @()
}

@johlju
Copy link
Member

johlju commented Apr 10, 2019

This will be resolved in PR dsccommunity/ComputerManagementDsc#211 and fixed in the resource that is moved to the ComputerManagementDsc module.

Closing this issue at this time.

@johlju johlju closed this as completed Apr 10, 2019
@kwirkykat kwirkykat removed the help wanted The issue is up for grabs for anyone in the community. label Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants