[cfgeeks] Solaris 10 Upgrade Error

Liston Bias bias at pobox.com
Wed Feb 14 19:19:46 EST 2007


hmmm... Thanks for the insight.  I keep looking and then bail on the 
update tomorrow early.

Looks like /bin/sh is 32-bit but that appears to be what it is elsewhere 
on my systems too that are working now.

$ cat /etc/release
                        Solaris 10 11/06 s10s_u3wos_10 SPARC
            Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
                         Use is subject to license terms.
                            Assembled 14 November 2006
$ ldd /sbin/sh
         libgen.so.1 =>   /lib/libgen.so.1
         libsecdb.so.1 =>         /lib/libsecdb.so.1
         libc.so.1 =>     /lib/libc.so.1
         libnsl.so.1 =>   /lib/libnsl.so.1
         libcmd.so.1 =>   /lib/libcmd.so.1
         libmp.so.2 =>    /lib/libmp.so.2
         libmd5.so.1 =>   /lib/libmd5.so.1
         libscf.so.1 =>   /lib/libscf.so.1
         libdoor.so.1 =>  /lib/libdoor.so.1
         libuutil.so.1 =>         /lib/libuutil.so.1
         libm.so.2 =>     /lib/libm.so.2
         /platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1
         /platform/SUNW,Sun-Fire-V210/lib/libmd5_psr.so.1
$ /bin/hostname
ksh: /bin/hostname: cannot execute
$ cd /usr/bin
$ ls -al sh
lrwxrwxrwx   1 root     root          13 Feb 14 16:26 sh -> ../../sbin/sh
$ bash /bin/hostname
/bin/hostname: line 18: /bin/uname: Permission denied
$ isainfo -kv
64-bit sparcv9 kernel modules
$ file /sbin/sh
/sbin/sh:       ELF 32-bit MSB executable SPARC Version 1, dynamically 
linked, stripped




On Wed, 14 Feb 2007, Kevin P. Inscoe wrote:

> On Wed Feb 14, 2007 at 10:33:07AM -0500, Liston Bias wrote:
>> Seeing sporatic permission issues after upgrade from older Sol10 release
>> to Sol10 11/06 release.
>>
>> Anyone seen this?
>>
>> bash-3.00$ /bin/hostname
>> bash: /bin/hostname: /usr/bin/sh: bad interpreter: Permission denied
>>
>>
>> Most stuff works fine, but critical apps are not starting because of this.
>>
>> Likely to try just reinstalling the upgrade, but thought somone may know
>> of another workaround.
>
> BTW /usr/bin/shell should be a link to /sbin/sh which is now dynamically linked.
>
> That error is coming from the interpreter itself
> from trying to execute the script /bin/hostname.
>
> What are your perms on /sbin/sh? Should be 755
>
> Also make sure sh *is* dynamically linked.
>
> # ldd /sbin/sh
>        libgen.so.1 =>   /usr/lib/libgen.so.1
>        libsecdb.so.1 =>         /usr/lib/libsecdb.so.1
>        libc.so.1 =>     /usr/lib/libc.so.1
>        libnsl.so.1 =>   /usr/lib/libnsl.so.1
>        libcmd.so.1 =>   /usr/lib/libcmd.so.1
>        libmp.so.2 =>    /usr/lib/libmp.so.2
>        libmd5.so.1 =>   /usr/lib/libmd5.so.1
>        libscf.so.1 =>   /usr/lib/libscf.so.1
>        libdoor.so.1 =>  /usr/lib/libdoor.so.1
>        libuutil.so.1 =>         /usr/lib/libuutil.so.1
>        libm.so.2 =>     /usr/lib/libm.so.2
>        /platform/SUNW,Sun-Fire-V890/lib/libc_psr.so.1
>        /platform/SUNW,Sun-Fire-V890/lib/libmd5_psr.so.1
>
> Not also that bash is also installed as a different binary
> /bin/bash
>
> hostname is run by a lot of stuff (profile, etc..)
>
> what happens if you bash /bin/hostname?
>
> also did you upgrade and are using 64 bit? did the upgrade know that?
>
> # isainfo -kv
> 64-bit sparcv9 kernel modules
>
> # file /sbin/sh
> /sbin/sh:       ELF 64-bit MSB executable SPARC Version 1, dynamically
>
> I have seen this bite folks before. BTW I *never* upgrade I *always* refresh.
>
> -- 
> Kevin P. Inscoe                       Amateur Radio Call Sign: KE3VIN
> Deltona, FL 32738                                28.9497N by 81.1952W
> kevin [at] inscoe [dot] org                    http://kevininscoe.com
> GPG 0x61288D53
> "The mysteries of the Universe are revealed when you break stuff."
> - Coop, Megas XLR
> _______________________________________________
> cfgeeks mailing list
> cfgeeks at mail.cfgeeks.org
> http://mail.cfgeeks.org/mailman/listinfo/cfgeeks
>

============================================================================
- Liston Bias                       Reputations are created every day
   Alumnus of Oklahoma State Univ    and every minute.
   Alumnus of Florida State Univ                     -- Christopher Ruel

   bias at pobox.com
   http://www.pobox.com/~bias
============================================================================


More information about the cfgeeks mailing list