[cfgeeks] Solaris 10 Upgrade Error

Liston Bias bias at pobox.com
Wed Feb 14 20:24:29 EST 2007


Looks like relative pathing is causing the error... It works fine for 
root, but the relative pathing is not working for users right.  The file 
symlinks are the same as other systems I have seen.  hmmmm....

Still looking...

# ls -al uname
lrwxrwxrwx   1 root     root          16 Feb 14 20:18 uname -> 
../../sbin/uname


/usr/bin
# /usr/bin/uname -a
ksh: /usr/bin/uname:  not found


/usr/bin
# /sbin/uname -a
SunOS svrsvodas30 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V210


/usr/bin
# ls -l /bin/sh
lrwxrwxrwx   1 root     root          13 Feb 14 20:18 /bin/sh -> 
../../sbin/sh


/usr/bin
# /bin/sh
ksh: /bin/sh:  not found


/usr/bin
# /sbin/sh
$


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
>



More information about the cfgeeks mailing list