SUMMARY: Help installing patches

From: Michael Blandford (mikey@fimad8.lanl.gov)
Date: Mon Jun 10 1996 - 11:29:47 CDT


Thanks for the many replies. The problem was a permission problem
on the patch itself. It was go-wrx all the way down.

Again, the net is a better source of answers that Sun. Just think, I
spent 16 hours on the phone with Sun tech support and they couldnt figure
this out. Their suggestion was to reload the OS.
Hmmm.... And I only talked to 8 different people.

I never would have guessed that the permissions had to be they way they
do. pkgadd runs as root but apparently changes uid or something when
it runs.

Anyway. Here were the replies:

--------------------
From: charity@luey.redars.ca.Boeing.COM (Charity Gustine )
Hello,

With pkgadd did you specify a path. I have tried running pkgadd without the
-d and it gave me an error similar to the one that you rec. in your example.
Just specify the path that the package is located in.

Maybe if you ran truss installpatch, or sent the errors to a file, this could
help you figure out why install patch is failing.

Thanks,

Charity
--------------------
From: Ric Anderson <ric@rtd.com>

I had this problem too. I seem to recall (from doing a
        truss -t open -t setuid pkgadd ...
that it was failing to open the checkinstall script. I think
the reason was that pkgadd did a "setuid(3)" or something like that
and my patches were not readable by that ID. Once I did a
        chmod a+rX patchdir_list
then everything worked.
--------------------
From: Santithorn Bunchua <keh@au.ac.th>

Try...

        umask 022

before you extract the tar file.
--------------------
From: Casper Dik <casper@holland.Sun.COM>

Mak esure that "nobody" can read and execute the checkinstall script
and that it can access all files.

Try chmod -R a+rX <patchdirectory>

Casper
--------------------
From: hu@garfield.m.isar.de (Martin Huber

untar the patch in /tmp and install it from there.

This worked for me for a couple of Solaris 2.5 patches.

Martin
---------------------
From: mkt@lucent.com

I had the same problem but with backing out patches. My
problem was I was using a private su command that had the group
id of 0. In solaris it must be 1(other) for the checkinstall script
to be able to run. Hopefully that helps.

---------------------
From: B.Bretthauer@dlr.de (Bernward Bretthauer)

The directory tree containing the patch must be readable by everyone.
So do a "chmod -R a+rx ." before calling ./installpatch.



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