-
Notifications
You must be signed in to change notification settings - Fork 202
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
1.0.0.rc2 gem has wrong file permissions #180
Comments
Just adding a note that the permissions problem for system-wide installations seems to have existed since 0.9.0, issue #176 |
I'm also having this issue with 1.0.0rc3. # can't run 1.0.0rc3 as normal user
$ sudo gem install 'spork' --pre
$ spork
/usr/local/bin/spork:19:in `load': no such file to load -- /usr/local/lib/ruby/gems/1.9/gems/spork-1.0.0rc3/bin/spork (LoadError)
from /usr/local/bin/spork:19:in `<main>'
$ ls -l /usr/local/lib/ruby/gems/1.9/gems/spork-1.0.0rc3/bin/spork
-rwx--x--x 1 root wheel 460 2012-08-12 15:32 /usr/local/lib/ruby/gems/1.9/gems/spork-1.0.0rc3/bin/spork
# works fine with 0.9
$ sudo gem install spork
$ ls -l /usr/local/lib/ruby/gems/1.9/gems/spork-0.9.2/bin/spork
-rwxr-xr-x 1 root wheel 460 2012-08-12 15:34 /usr/local/lib/ruby/gems/1.9/gems/spork-0.9.2/bin/spork |
I'm also using spork '1.0.0rc3'. I was having problems until I changed the file permissions for the gem per romanbsd's comment (thank you). What information would be appreciated to track down why it's installed as root when I bundle install? None of the other installed gems seem to have their permissions tweaked like that. |
The 1.0.0.rc2 gem contents don't have a read permission, therefore the gem is unusable when it's installed system wide (with sudo), as users cannot read some files.
You'll probably want to check permissions and umask before packaging.
Thanks.
The text was updated successfully, but these errors were encountered: