-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
states.cmd command "run" does not accept password parameter #34029
Comments
@Akvalangs looks like this is a duplicate of #33676 and it also looks like it has been fixed and is included in 2016.3.1. Can you upgrade to 2016.3.1 and give that a try and report back whether you are still seeing the behavior? Thanks! |
I'm having the same problem with cmd.run. I've tried it both as a custom module that calls cmd.run and using the cmd.run state. Error message:
product.sls:
Reproduce issue:Execute state on windows minion: salt 'winServer' state.apply product Version
|
I'm running 2016.3.1, and I'm having this same problem, which seems like it's making the runas functionality on Windows nonusable.
|
@cachedout The problem is that the What I think is going on: |
@Akvalangs @Ch3LL I'm unable to replicate this. I'm running salt 2016.3.4. This could be an issue running salt as a service versus running salt in an elevated command prompt. Currently runas functionality in Windows will only work if the salt-minion is running as a service under the Local System account. |
@Akvalangs @Ch3LL Can you verify that this is failing when running salt-minion as a service under the Local System account? |
Closed for lack of reply. |
Hey all, ran into this today. It shows conflicting output. It wants the 'password' when running as a user but then says password is invalid keyword. Ideas?
SLS File:
Master:
Minion-Windows:
|
I don't think the |
Steps to Reproduce Issue
root@salt-master:/srv/salt# salt minion_name state.apply test Versions ReportSalt Version: Dependency Versions: System Versions: salt-minion 2017.7.1 (Nitrogen) |
Problem persists in salt 2018.3.0 (Oxygen) |
This issue was fixed in 2017.7.2. It is also fixed on the head of 2018.3, which will become 2018.3.1. |
Description of Issue/Question
Executing powershell command using state "cmd" does not accept parameter "password". Error message: "password is a required argument for runas on Windows".
Setup
Steps to Reproduce Issue
Excute state on Windows Server (standalone minion) by command: C:\salt>salt-call.bat --local state.apply
Versions Report
The text was updated successfully, but these errors were encountered: