-
Notifications
You must be signed in to change notification settings - Fork 280
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
Make vagrant provision run without root permission #103
Conversation
Can one of the admins verify this patch? |
dd0c2b9
to
9919f71
Compare
jenkins test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. LGTM.
Test PASSed. |
9919f71
to
e46a20e
Compare
jenkins test this please |
Test PASSed. |
jenkins test this please |
Test PASSed. |
While developing with Vagrant, I just realized that the provision step is being executed with root permissions.
https://www.vagrantup.com/docs/provisioning/shell.html#privileged
Therefore, all files created during that step would belong to the root user. With that configuration, if an user using vagrant wants to run the tests, it will have to run as the root user, which is not necessary.
The above Figure shows the problem. This MR fixes that issue, by not allowing the provision step to be run with root permission.