rails executable was inapproprite permissions
---------------------------------------------
Key: JRUBY-1143
URL: http://jira.codehaus.org/browse/JRUBY-1143
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.0.0
Environment: > uname -a
Linux caffe.sfbay.sun.com 2.6.20-1.2952.fc6 #1 SMP Wed May 16 18:18:22 EDT 2007
x86_64 x86_64 x86_64 GNU/Linux
> java -version
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_01-b06, mixed mode)
Reporter: Nathan Fiedler
Assignee: Thomas E Enebo
Priority: Minor
After installing the rails gems (gem install rails -y --no-rdoc) I found that
no one but the root user could execute the rails script. It seems that its
permissions are set in an odd way, contrary to all of the other binaries in the
JRuby bin directory. See a snippet of the directory listing below.
-rwxr-xr-x 1 root root 693 Jun 7 10:40 _jrubyvmopts.bat*
-rwxr-xr-x 1 root root 379 Jun 7 10:40 jrubyw.bat*
-rwx-wx-wx 1 root root 344 Jun 14 10:28 rails*
-rwxr-xr-x 1 root root 335 Jun 7 10:41 rake*
-rwxr-xr-x 1 root root 337 Jun 7 10:40 spec*
-rwxr-xr-x 1 root root 348 Jun 7 10:40 spec_translator*
-rwxr-xr-x 1 root root 152 Jun 7 10:40 testrb*
-rwxr-xr-x 1 root root 650 Jun 7 10:40 update_rubygems*
The rails executable is the only one where the permissions are different. If I
try to invoke rails as a non-priveleged user, I get this error: bash:
/opt/jruby-1.0/bin/rails: Permission denied
Changing the mode to 755 allows any user to invoke the rails command.
--
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