Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2586  / 2 Years ago, tue, may 17, 2022, 8:20:22

Here is what I have



$ ls -al /usr/bin/scala
lrwxrwxrwx 1 root root 33 Aug 30 21:00 /usr/bin/scala -> /opt/scala/scala-2.10.1/bin/scala


but



$ scala
-bash: /usr/bin/scala: Permission denied


how do I fix this?


More From » 13.04

 Answers
1

The file in /usr/bin isn't the binary itself, but a symbolic link (symlink) to the "real" binary at /opt/scala/scala-2.10.1/bin/scala. In order to execute your command you need to have sufficient permissions on that file, not (only) on the symlink. Otherwise, permissions could be circumvented very easily, just by creating a symlink with less restrictive permissions.


[#29689] Tuesday, May 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ligenvirt

Total Points: 238
Total Questions: 98
Total Answers: 100

Location: Senegal
Member since Fri, Aug 21, 2020
4 Years ago
ligenvirt questions
Tue, Aug 17, 21, 02:28, 3 Years ago
Thu, Sep 23, 21, 17:55, 3 Years ago
Mon, Oct 18, 21, 03:34, 3 Years ago
;