permissions on $JRUBY_HOME/lib/ruby/gem/1.8 not wide enough
-----------------------------------------------------------
Key: JRUBY-2210
URL: http://jira.codehaus.org/browse/JRUBY-2210
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1RC2
Environment: Linux FC5
Reporter: Michael Kintzer
Assignee: Thomas E Enebo
Priority: Minor
Upgraded from jruby-1.0.3 and untarred jruby-1.1RC2 ('tar xvfz
jruby-bin-1.1RC2.tar.gz') as root user.
exported JRUBY_HOME to point to the jruby-1.1RC2 home.
Installed gems into $JRUBY_HOME/lib/ruby/gems/1.8 using "jruby -S gem install
<gem> -y -d"
As user (not root), if I queried locally installed gems "gem list --local" it
returned no gems. I tracked this down to a permissions issue.
ls -l /usr/local/jruby-1.0.3/lib/ruby/gems/
total 4
drwxr-xr-x 7 root root 4096 Dec 27 14:28 1.8
ls - l /usr/local/jruby-1.1RC2/lib/ruby/gems/
total 4
drwx------ 7 root root 4096 Mar 1 09:22 1.8
The jruby-1.1RC2 install did not correctly set read-execute permissions for
groups and others for the lib/ruby/gems/1.8 directory.
By manually chmod'ing the correct permissions to match the 1.0.3 installation,
'gem list --local' was able to access this directory and my applications were
able to load the necessary gems.
The original tar.gz file permissions for this directory look ok, so I'm
wondering if the gem install process modified the directory permissions?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email