Repository navigation
Replies: 19 comments
|
@gigi206 Thank you for reporting this issue. @saltstack/team-windows Any of you have any thoughts on this one? Thanks. |
|
@gigi206, can you make sure that the user running start has write access to the directory for the minion_cache? To ensure the user can write to the minion cache, the section "Add the New User to the Access Control List for the Salt Folder" at https://docs.saltstack.com/en/latest/topics/installation/windows.html should help, just make sure you're applying it to the minion cache directory. |
|
Yes, all rights are good for the minion_cache. If I edit function copy_security in salt\utils\win_dacl.py file like below, it seems to works : def copy_security(source,
target,
obj_type='file',
copy_owner=True,
copy_group=True,
copy_dacl=True,
copy_sacl=True):
return TrueAs shown in the error message, GetNamedSecurityInfo required an admin privilege. |
|
maintainers: it seems like according to https://docs.microsoft.com/en-us/windows/win32/api/aclapi/nf-aclapi-getnamedsecurityinfoa, the |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
|
The fix for this issue was discussed and resolved and is literally just waiting for a maintainer to pick it up and add the required |
|
Thank you for updating this issue. It is no longer marked as stale. |
|
@frugunder, if you want to fix bugs please review the super simple fix mentioned in this discussion. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
|
Not stale |
|
Thank you for updating this issue. It is no longer marked as stale. |
|
Not only is it not stale, but a really simple fix too. |
|
The above suggested fix is incorrect. You can't enable privileges the user does not have. The token contains all the privileges the user has. Some are enabled, others are dormant. The By default, not all privileges are enabled (unless you're logged in as THE Administrator). That function loops through each privilege held by the token and enables it. If the user doesn't have the privilege to begin with, it cannot be enabled. You must run salt with a user that has permissions to its directories. By default this is Administrators. If you're an administrator, you must run salt in an elevated prompt. |
|
The failure in the stack trace of the original issue is in the You could try adding the following 2 lines after the las If this works, could you please submit a PR? |
I think you're looking at the wrong thing here because If This is why many of the implementors of the functionality in And no, the UAC dialog is not the same and isn't even considered a security boundary for that matter as explicitly mentioned by Microsoft (they don't offer security bounties for UAC bypasses).
According to the OP, the discussion from 4 months ago, and my reproduction from 4 months ago, this was the case. I don't recall if it was the same crash since it was so long ago and I just relocated and don't have any of my equipment setup, but you can simply grep for calls to The right thing to do would be to set all available token privileges at startup (instead of on-demand) so that one can cull out all of the repeated code, or better yet to mention in docs at https://docs.saltstack.com/en/master/ref/configuration/nonroot.html that running the service as a non-administrative in Windows is although possible, it's unsupported until someone has actually tested it. As you guys have to unfortunately go through a struggle fixing critical issues upon each release, I think you guys should be culling features and I'm for fixing this w/ docs, but its up to @gigi206 on how they want to proceed. (edited to remove a stray 'Y') |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
|
Not stale |
|
Thank you for updating this issue. It is no longer marked as stale. |
|
This question was moved out of the issue tracker as part of a backlog cleanup. If you have additional context, workarounds that worked for you, or still need help, please reply here. |
Uh oh!
There was an error while loading. Please reload this page.
Description of Issue
When I run saltstack with admin rights it works.
But if I run saltstack without admin rights, I have the following issue:
GetNamedSecurityInfo needs to be run with admin rights
Steps to Reproduce Issue
I think just import from a jinja file like that :
Versions Report
All reactions