SUMMARY su binaries

From: Terry Gorby (tgorby@emc.com)
Date: Thu Apr 17 1997 - 05:12:06 CDT


The help is greatly appreciated, Thanks.

Original Questions:

> On SunOS 4.1.? and 5.? systems.
>
> Q. What is the difference in the
> binaries for the su command
> in the /sbin and /usr/bin
> directories? They are different
> in size.
>
> Q. Can I substitute a single binary
> for both versions? I have an
> "su" command which restricts
> root when SUing to other users.

Re-pliers:
<fpardo@tisny.com>
<poffen@San-Jose.ate.slb.com>
<hxktb0@svho1nfs_1.supervalu.com>
<casper@holland.Sun.COM>
<blymn@awadi.com.au>

Replies:

<><><><>
The difference is static vs. dynamic linking. If
your *.so libraries, or the partition they live
on, are gone, or inaccessible, you can use the
statically-linked binaries in /sbin

If you want to substitute a single binary for the
two, be sure that the single new one is statically
linked, and lives in /sbin. The Gnu C
compiler lets you force static linking with a
command line switch; I
<><><><>

Tlg
      <><><><><><><><><><><><><>
      <> Terry Gorby <>
      <> System Manager <>
      <> EMC <>
      <> Server Resources <>
      <><><><><><><><><><><><><>



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:51 CDT