Could not run java after applying stick bit permissions to it.
I tried to use sticky bit on JVM by changing its permissions
# chmod -R ug+s jre/
/opt/jre/bin/java root:users -rwsr-sr-x
Then, afterwards when I tried to start the JVM it gave the following
$ ./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,
# 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 ?
- 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 09:22 AM.|