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

Unicorn is downloaded and unpacked with elevated privileges #4

Open
njv299 opened this issue Nov 9, 2017 · 0 comments
Open

Unicorn is downloaded and unpacked with elevated privileges #4

njv299 opened this issue Nov 9, 2017 · 0 comments

Comments

@njv299
Copy link
Collaborator

njv299 commented Nov 9, 2017

Unicorn-1.0.1 is downloaded and unpacked by the build_unicorn_support.sh installation script with elevated privileges, which can make it a pain to uninstall. Beyond that, there is no reason for it to have those privileges in the first place.

I think the build_unicorn_support.sh script must be run as root/sudo in order to actually install the patched Unicorn binaries to the user's system, but the side effect is that a lot of the script runs with the wrong privileges. I attempted to fix this by prefixing a bunch of lines in the script by prefixing them like this:

sudo -u ${USERNAME} <command to run with less privileges>

This didn't work, though, and my bash-fu is weak.

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

No branches or pull requests

1 participant