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 ?
|