salt.modules.win_file.chown() and chgrp() do not change security descriptor
In the Windows file system, the security descriptor information is irrespective of an optional discretionary access control list (DACL). To change the owner or group, one must change the information in the security descriptor, outside of the DACL.
See here for details: http://msdn.microsoft.com/en-us/library/windows/desktop/aa379561%28v=vs.85%29.aspx
I am working on fixing this, and will submit a pull request when finished with it.
Thanks for the report! And thanks for working on a fix, look forward to the pull req!
Thanks, @Geo23589!
@UtahDave or @basepi , Do you want win_file.chgrp() and .chown() to return anything on success? The current version returns file.chown() etc. , which returns os.chown(), which doesn't return anything as far as I know. I have it working, but want to know your thoughts...
Let's try to mimic what those functions do on Linux, if possible On Nov 29, 2013 10:07 AM, "Geoff Short" [email protected] wrote:
@UtahDave https://github.com/UtahDave or @basepihttps://github.com/basepi, Do you want win_file.chgrp() and .chown() to return anything on success? The current version returns file.chown() etc. , which returns os.chown(), which doesn't return anything as far as I know. I have it working, but want to know your thoughts...
— Reply to this email directly or view it on GitHubhttps://github.com/saltstack/salt/issues/8827#issuecomment-29528005 .
Fixed with merge #8934