Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Bundler uses user permissions in system directories #1019

tenderlove opened this Issue Feb 7, 2011 · 2 comments


None yet
3 participants

tenderlove commented Feb 7, 2011

When using bundler with system ruby, the permissions set on the cache are the permission of the user and not root. The permissions should be root.

Steps to reproduce:

  1. bundle install on any project (like rails) using system ruby.
  2. Look in the system gem cache directory

You see some gems that are cached with user permissions. Git dependencies also have the problem:

[aaron@higgins bundler]$ pwd
[aaron@higgins bundler]$ ls -alh
total 0
drwxr-xr-x    3 502   admin   102B Jun  7  2010 .
drwxrwxr-x  353 root  admin    12K Feb  5 21:16 ..
drwxr-xr-x   10 502   admin   340B Jan 16 12:53 git
[aaron@higgins bundler]$

Is this still an issue? I was going to test with the rails repo, but it's Gemfile is using 1.9.3 hash syntax. https://gist.github.com/4602079


xaviershay commented Aug 10, 2013

Reopen with repro on latest bundler.

@xaviershay xaviershay closed this Aug 10, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment