Skip to content
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

The runas feature that was added in 93423aa2e5e4b7de6452090b0039560d2b13... #560

Closed
wants to merge 1 commit into from

Conversation

UtahDave
Copy link
Contributor

...02e4 jacks up Windows support for the minion.

Adding in these 2 try statements allows Windows to load the minion.

Is this the correct way to do this?

…for the minion.

Adding in these 2 try statements allows Windows to load the minion.
@terminalmage
Copy link
Contributor

I've actually found that the setuid/seteuid method won't allow a user's enironment to be imported. To do this, either the user's environment file must be imported, or the command must be run with su (su - user -c 'cmd').

I'll be submitting my own pull request soon which will incorporate some of UtahDave's changes, but which will ignore the runas capability if the command is being run on Windows.

@terminalmage
Copy link
Contributor

@UtahDave Before I submit this as a pull request, can you try this on Windows and make sure that it doesn't unmake the universe? :)

https://gist.github.com/1659443

@UtahDave
Copy link
Contributor Author

archtaku's fix here https://gist.github.com/1659443 seems to work great.

Let's not use this pull request and use his to address this issue.

@UtahDave UtahDave closed this Jan 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants