LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Could not run java after applying stick bit permissions to it. (http://www.linuxquestions.org/questions/linux-software-2/could-not-run-java-after-applying-stick-bit-permissions-to-it-649245/)

pranav_patil 06-14-2008 07:57 AM

Could not run java after applying stick bit permissions to it.
 
I tried to use sticky bit on JVM by changing its permissions
as follows:

# chmod -R ug+s jre/
# ls

/opt/jre/bin/java root:users -rwsr-sr-x

Then, afterwards when I tried to start the JVM it gave the following
error:

$ ./java -version

error while loading shared libraries : libjli.so : cannot open shared
object file : No such file or directory.

When I removed stick bit permission from /jre/bin/java,
ie:
# chmod ug-s /opt/jre/bin/java
, it works fine.

Also on deleting the file /opt/jre/lib/amb64/jli/libjli.so
same error occurs. It means that when you run java as a normal user
you could'nt access the library file libjli.so because some external
executables doesn't have stick bit set to it as for /opt/jre/bin/java.

Can anybody help me to run java with sticky bit permissions set on it ?

Asy 06-14-2008 10:45 AM

questions:
- why put the sticky bit on java, normally java shout run for every user

if you set the sticky bit on the java executable, you have to set it to al of it underlaying files. That is why you get the error.


All times are GMT -5. The time now is 10:03 PM.