ld-elf.so.1: Shared object"libintl.so.6" not found

Kris Kennaway kris at obsecurity.org
Wed Dec 15 16:13:31 PST 2004


On Thu, Dec 16, 2004 at 02:43:12AM +0300, Andrew P. wrote:

> echo "Starting ppp as \"${ppp_user}\""
> echo "JUST BEFORE - ${ppp_command}"
> su -m ${ppp_user} -c "exec ${ppp_command}"
> echo "JUST AFTER"

> Here I almost pressed the "Send" button in my Thunderbird, but
> oops. Back to the shell :-)
> 
> # man su
> <...>A shell is then executed.<...>
> 
> Yep, my default shell for root is bash.
> 
> # ldd bash
> bash:
>         libncurses.so.5 => /usr/lib/libncurses.so.5 (0x280e0000)
>         libintl.so.6 => /usr/local/lib/libintl.so.6 (0x28121000)
>         libc.so.4 => /usr/lib/libc.so.4 (0x2812a000)
>         libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x281c3000)
> 
> So apparently I have probably changed the default shell from csh
> to bash on both machines right after that portupgrade. I changed
> back to sh now - and the error is gone.
> 
> The only question I have now is how come I've never read about this?
> I've read the Handbook and the Complete Freebsd and literally
> thousands of other pages concerning FreeBSD management. I have
> never seen a warning about changing the default shell for root.
> Or am I just too blind?..

Aha!

Well, it's good that we finally tracked this down.  I'm not aware of
anywhere that mentions this caveat and could not find it in a quick
skim of the manpages and handbook, although it may still be there
somewhere.  It is certainly part of the UNIX lore that the root shell
should be one that is self-contained in the root filesystem (typically
this means /bin/sh or /bin/csh).  The standard thing to do if you want
to use another shell is to use the toor account, which is an alternate
root account that is provided for this kind of thing.  This leaves
root available for emergency use (single-user mode), and (it turns
out) for running scripts with 'su' during the early boot phase.

What I recommend is that you open a doc PR requesting that this be
documented somewhere, so that future generations don't run into this
problem as well.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041215/7479fe6d/attachment.bin


More information about the freebsd-questions mailing list