Scenario:
set user id bit for java executable for linux is set as this
-rwsr-sr-x 1 root root 64492 Aug 27 05:33 java
Now you login as non-root and run a Java Program's main method with following code
System.out.println(java.awt.Component);
System.out.println(Class.forName("java.awt.Component"));
The first line of code is sucessful, but the second line is not.
It throws the UnsatisfiedLinkError on line 2.
java.lang.UnsatisfiedLinkError: /opt/SnappimonAgent/jre/lib/i386/libawt.so: libmlib_image.so: cannot open shared object file: No such file
ry
But when run as root, it just runs fine.
Can any body breaks it?