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
[BUG] Running cmd.run with "runas" from salt-call.bat gives OSError: [WinError 6] The handle is invalid. #59978
Comments
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
I have resolved my own issue. Found out that I wasn't passing the password in for Windows to authenticate it. |
The documentation states that the password is required on Windows. However, the command still runs successfully, it just throws a stacktrace. I believe the intent was to allow the command to run on Windows without a password if salt is running under an account with the Without password:
With password:
|
Remove the stack trace. |
Description
When applying a state using
salt-call.bat
that has acmd.run
that runs as a certain user, we get aOSError: [WinError 6] The handle is invalid
. Note this happens for anycmd.run
ran withrunas
.Setup
Steps to Reproduce the behavior
Expected behavior
Expecting it to not print out odd error regarding an invalid handle.
Screenshots
Not required.
Versions Report
salt --versions-report
Master and Minion are of same version.Additional context
Not required.
The text was updated successfully, but these errors were encountered: