[MacPorts] #30550: scala_select sets faulty permissions
MacPorts
noreply at macports.org
Tue Aug 2 09:14:26 PDT 2011
#30550: scala_select sets faulty permissions
------------------------------+---------------------------------------------
Reporter: m@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.1
Keywords: | Port: scala_select
------------------------------+---------------------------------------------
I used scala_select to select scala29 as default version. Unfortunately,
it seems that scala_select sets permissions that do not allow a standard
user to call scala:
As admin:
{{{
$ ls -la /opt/local/bin/scala
lrwxr-x--- 1 root admin 36 Aug 2 18:05 /opt/local/bin/scala ->
/opt/local/share/scala-2.9/bin/scala
}}}
As standard user:
{{{
$ scala
ls: /opt/local/bin/scala: Permission denied
java.lang.ClassNotFoundException
- klass: 'java/lang/ClassNotFoundException'
# fatal error: ExceptionMark destructor expects no pending exceptions
/opt/local/bin/scala: line 161: 18137 Trace/BPT trap
"${JAVACMD:=java}" $JAVA_OPTS "${java_args[@]}"
${CPSELECT}${TOOL_CLASSPATH} -Dscala.usejavacp=true
-Dscala.home="$SCALA_HOME" -Denv.emacs="$EMACS" $CYGWIN_JLINE_TERMINAL
scala.tools.nsc.MainGenericRunner "$@"
}}}
So, I fixed the permissions as admin user:
{{{
$ sudo chmod -h a+rx /opt/local/bin/scala
$ ls -la /opt/local/bin/scala
lrwxr-xr-x 1 root admin 36 Aug 2 18:05 /opt/local/bin/scala ->
/opt/local/share/scala-2.9/bin/scala
}}}
Now, I can call scala as standard user as well.
--
Ticket URL: <https://trac.macports.org/ticket/30550>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list