-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Jail connection ignores sudo_user #6072
Comments
Something you would like to help work on perhaps? |
I am unsure if I should support sudo_user or remote_user with jexec, because it won't actually use the sudo command. |
Unfortunately the jexec -U option uses the current host environment as the environment within the jail. So while some things work as expected:
Others do not:
At a minimum, we'll need $HOME to be correct in the jail. This may be a starting point:
|
Issue Type:
Bug Report
Ansible Version:
ansible 1.4.4
Environment:
I am running FreeBSD 10.0-RELEASE and managing 10.0-RELEASE jails.
Summary:
The connection type “jail" ignores the sudo_user setting, commands are always executed as root.
As the connection type uses jexec already, this can probably be fixed trivially by using jexec -U
Steps To Reproduce:
Expected Results:
Actual Results:
The text was updated successfully, but these errors were encountered: