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

Quote additional sudo permissions #915

Conversation

christophermaier
Copy link

Commands specified in a sudoers file can be simple commands, or they
can be commands and arguments. Thus,
BUILDKITE_ADDITIONAL_SUDO_PERMISSIONS can be expected to contain
spaces, and should be quoted.

Without quotes, anything after the space is taken to be a separate
command to be invoked, which will often give you a non-functional
instance (at least as far as interacting with Buildkite is concerned).

A workaround is to manually escape any spaces.

Signed-off-by: Christopher Maier [email protected]

Commands specified in a sudoers file can be simple commands, or they
can be commands and arguments. Thus,
`BUILDKITE_ADDITIONAL_SUDO_PERMISSIONS` can be expected to contain
spaces, and should be quoted.

Without quotes, anything after the space is taken to be a separate
command to be invoked, which will often give you a non-functional
instance (at least as far as interacting with Buildkite is concerned).

A workaround is to manually escape any spaces.

Signed-off-by: Christopher Maier <[email protected]>
@christophermaier
Copy link
Author

Withdrawing in favor of my coworker's patch in #916

@christophermaier christophermaier deleted the quote-sudo-permissions branch September 11, 2021 13:49
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.

1 participant