j2sdk 1.4.2 and libnative_chmod.so

Randy McMurchy randy at linuxfromscratch.org
Wed Oct 27 08:46:40 PDT 2004

S. Anthony Sequeira wrote:
> I have the following file in my j2sdk installations, both pre-compiled and
> built.
> It strikes me as a bit odd because
> 1) The dates are off
> 2) The permissions are off
> and on my built j2sdk the owner:group is off.
> Any ideas?
> $ ls -lFh $( locate libnative_chmod )
> -rw-r--r--  1 74287 1050 5.4K 2003-02-04 21:15 /opt/j2sdk/j2sdk-1.4.2/jre/lib/i386/libnative_chmod.so
> -rw-r--r--  1 root  root 5.4K 2003-02-04 21:15 /opt/j2sdk/j2sdk-precompiled-1.4.2/jre/lib/i386/libnative_chmod.so

Apparently this file is simply copied from the unpacked tarball
during the installation. The ownerships are "off" on your built
version because you probably unpacked the tarball as the root user
and then the file is installed with the ownership of whatever the
guy's UID:GID who packaged the tarball at Sun is.

Simply chown the file. Then issue

find /opt/j2sdk/ ! -user root -exec ls -l {} \;

to discover any other files that have bogus ownership. Permission
of 644 on the shared lib should probably be changed, and there is
one other .so as well. Use this command to find it:

find /opt/j2sdk/ -mode 644 -name *.so -exec ls -l {} \;

The dates look perfectly normal as they are the same as the files
installed in my pre-compiled JDK-5.0 version.

-rw-r--r--  1 root root 5511 Feb 22  2003 /opt/jdk/jdk-1.5.0-binary/jre/lib/i386/libnative_chmod.so


More information about the blfs-support mailing list