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

Run under root by default unless ODK_USER_ID is explicitly set. #905

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

gouttegd
Copy link
Contributor

@gouttegd gouttegd commented Aug 2, 2023

This PR changes the entry point script so that it defaults to run the inner processes as root, unless the ODK_USER_ID variable is explicitly set to something else than zero.

This avoids breaking things for users who for some reasons do not pass the ODK_USER_ID variable when they invoke the ODK – which includes Windows users, since the run.bat script has never been updated to pass that variable.

Change the entry point script so that it defaults to run the inner
processes as root, unless the ODK_USER_ID variable is explicitly set to
something else than zero.

This avoids breaking things for users who for some reasons do not pass
the `ODK_USER_ID` variable when they invoke the ODK -- which includes
Windows users, since the `run.bat` script has never been updated to pass
that variable.
@gouttegd gouttegd self-assigned this Aug 2, 2023
@gouttegd gouttegd requested a review from matentzn August 2, 2023 11:17
Copy link
Contributor

@matentzn matentzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THANK YOU!

I will create a development snapshot right away

@matentzn matentzn merged commit 856dbc5 into master Aug 2, 2023
1 check passed
@matentzn matentzn deleted the run-as-root-by-default branch August 2, 2023 11:37
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.

2 participants