Summary Question (was Ksh as root-bad advice)

From: Bruntel, Mitchell L, SOLCM <mbruntel_at_att.com>
Date: Fri Jun 27 2003 - 07:50:12 EDT
OK. Thanks to all who've proved me absolutely wrong about COPYing ksh to
/sbin
(wont work since still dependencies in /usr/lib.


Here goes last question about dependencies, and unused dependencies:

What would happen if I take the dependencies shown by LDD and copy them into
/sbin too?
(a: nothing?...)
ie copy the following files to /sbin:

for example: :
root@tape: /export/home/mbruntel #>  ldd /sbin/ksh
        libsocket.so.1 =>   /usr/lib/libsocket.so.1
        libnsl.so.1 => 	    /usr/lib/libnsl.so.1
        libsecdb.so.1 =>    /usr/lib/libsecdb.so.1
        libc.so.1 =>        /usr/lib/libc.so.1
        libdl.so.1 =>       /usr/lib/libdl.so.1
        libmp.so.2 =>       /usr/lib/libmp.so.2
        libcmd.so.1 =>      /usr/lib/libcmd.so.1
        /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1

(tried with first file):
root@tape: /export/home/mbruntel #>  ls -la /sbin/lib*
-rwxr-xr-x   1 root     other      70864 Jun 27 07:36 /sbin/libsocket.so.1

still shows with dependency:

BUT ldd -u (shows unused dependencies) shows:

root@tape: /export/home/mbruntel #>  ldd -u /sbin/ksh
        libsocket.so.1 =>       /usr/lib/libsocket.so.1
        libnsl.so.1 =>          /usr/lib/libnsl.so.1
        libsecdb.so.1 =>        /usr/lib/libsecdb.so.1
        libc.so.1 =>            /usr/lib/libc.so.1
        libdl.so.1 =>           /usr/lib/libdl.so.1
        libmp.so.2 =>           /usr/lib/libmp.so.2
        libcmd.so.1 =>          /usr/lib/libcmd.so.1
        /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1

   unused object=/usr/lib/libsocket.so.1
   unused object=/usr/lib/libsecdb.so.1
   unused object=/usr/lib/libmp.so.2
   unused object=/usr/lib/libcmd.so.1


Now what it SEEMS to say, is that libsocket.so.1 (and other files)
are UNREFERENCED in the target (/sbin/ksh) file, yet still necessary.

ideas? Comments?  Discuss.
TIA. Mitch
PS: I love the list much better now that I am OUT of digest mode!
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Jun 27 07:53:40 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:15 EST