We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to use the as function on centos 5.11 I consistent get this bash error
DEBUG [a0994eb0] sh: -c: line 0: unexpected EOF while looking for matching `"' DEBUG [a0994eb0] sh: -c: line 1: syntax error: unexpected end of file
simple test
on roles(:whatever) do as(user: 'someuser', group: 'somegroup' ) do execute :ls end do
Command that is being ran
sudo -u someuser -- sh -c 'sg somegroup -c \"/usr/bin/env ls\"'
From what I can tell it's properly escaped. It works fine when only suppling the user and not a group.
The text was updated successfully, but these errors were encountered:
There seems to be some escaping problem. If I remove the backslashes it works.
sudo -u someuser -- sh -c 'sg somegroup -c "/usr/bin/env ls"'
Sorry, something went wrong.
No branches or pull requests
When trying to use the as function on centos 5.11 I consistent get this bash error
simple test
Command that is being ran
From what I can tell it's properly escaped. It works fine when only suppling the user and not a group.
The text was updated successfully, but these errors were encountered: