[SunHELP] BASH

Dale Ghent sunhelp at sunhelp.org
Wed Jan 24 20:37:36 CST 2001


On Wed, 24 Jan 2001, Shain Miley wrote:

| 
| 
| I just made an attempt to log into one of my Solaris 8 server and I 
| cannot...I get kicked out...here is the error:
| 
| ld.so.1: -bash: fatal: /usr/lib/libnsl.so.1: mmap failed: Resource 
| temporarily unavailable.
| 
| I have seen this before...this was a known problem but the other sys 
| admin would just reboot.  Now that the machine is my responsibility I 
| want to get this resolved...any one know how?  Thanks
| Shain

Are you trying to log in as root? Was root's shell changed from /sbin/sh
to /usr/bin/bash?

sigh.

Whatever you do, do not change root's shell from /sbin/sh to anything
else! Why? Because /sbin/sh is a *static* binary. This type of binary does
not rely on loadable libraries to run, and so if those libraries become
unavailable (/usr/lib goes away, or there's no memory to load them),
/sbin/sh will always run.

Every other shell is a dynamic binary and is susceptable to not running if
it's libraries are unavailable (this is true for any OS that uses dynamic
libraries).

Yeah, sh is not as handy as bash may be. sh may not have cool features as
bash does. But /sbin/sh WILL run when things get horked. Just live with it
and run bash after you log in.

/dale 




More information about the SunHELP mailing list