Problem
After installing SCO OpenServer 6.0.0 Maint. Pack 1 (MP1), the pkgrm and pkgadd commands fail with the error below:
installf: ERROR: bad entry read in contents file pathname=/usr/bin problem=illegal value for mode
Cause
Openserver 6.0.0 MP1 has introduced a bug in the pkgrm/pkgadd utilities which causes the /var/sadm/install/contents file to become corrupted. The corruption may happen in the /tmp or /usr/bin lines of the /var/sadm/install/contents file.
Before MP1 is installed the two lines read as follows: /tmp d none 1777 root sys base /usr/bin d none 0775 root sys base
After MP1 is installed the two lines will read: /tmp d none 177777 root sys base /usr/bin d none 177777 root sys base
where 177777 is an illegal value. Solution
This has been reported to SCO Engineering and a fix will be released in an upcoming supplement.
As a workaround manually edit the /var/sadm/install/contents file and repair the corrupted entries before running any pkg commands.
Change:
/tmp d none 177777 root sys baseto:
/tmp d none 1777 root sys baseAnd change: /usr/bin d none 177777 root sys base
to:
/usr/bin d none 0775 root sys baseNow, pkgadd and pkgrm commands will run successfully.
NOTE: It is possible that on some machines /tmp will not need to be
modified.