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

1.0.0.rc2 gem has wrong file permissions #180

Open
romanbsd opened this issue Mar 1, 2012 · 3 comments
Open

1.0.0.rc2 gem has wrong file permissions #180

romanbsd opened this issue Mar 1, 2012 · 3 comments

Comments

@romanbsd
Copy link

romanbsd commented Mar 1, 2012

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.

@corporealfunk
Copy link

Just adding a note that the permissions problem for system-wide installations seems to have existed since 0.9.0, issue #176

@albb0920
Copy link

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

@dcvezzani
Copy link

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.

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

4 participants