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

Don't recommend installing gem with sudo #87

Merged
merged 1 commit into from
Apr 26, 2017
Merged

Conversation

tjschuck
Copy link
Contributor

Since gems can execute arbitrary code, installing with sudo can get dangerous if anyone manages to hijack this gem or one if it's dependencies on RubyGems.

If a user wants to install with sudo, they certainly can, and then they are assuming all the risk by being explicit. But it should not be recommended.

See also: http://masanjin.net/blog/sudo-gem-install-considered-harmful

@tjschuck
Copy link
Contributor Author

(Bump.)

@iGEL
Copy link
Contributor

iGEL commented Aug 25, 2014

👍

Copy link
Contributor

@junaruga junaruga left a comment

Choose a reason for hiding this comment

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

It makes sense. It looks good to me.

junaruga added a commit to junaruga/rack-test that referenced this pull request Apr 26, 2017
@junaruga junaruga mentioned this pull request Apr 26, 2017
junaruga added a commit to junaruga/rack-test that referenced this pull request Apr 26, 2017
* Don't recommend installing gem with sudo (From rack#87, rack#76)
* Update Copyright (From rack#76)
@tjschuck
Copy link
Contributor Author

@junaruga I've rebased this PR so it can be merged straight from GitHub's UI.

@junaruga junaruga merged commit 4b3c224 into rack:master Apr 26, 2017
@junaruga
Copy link
Contributor

@tjschuck thanks! merged!

@tjschuck
Copy link
Contributor Author

@junaruga Thanks for the blast from the past :)

alex-damian-negru pushed a commit to alex-damian-negru/rack-test that referenced this pull request Apr 5, 2021
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.

3 participants