Operating System - HP-UX
1754193 Members
4276 Online
108811 Solutions
New Discussion юеВ

Re: can we remove following HP-UX files

 
SOLVED
Go to solution
Tor-Arne Nostdal
Trusted Contributor

Re: can we remove following HP-UX files

Hi OV.
If you find some "strange files" it could be advicable to check out which software installation they came with.

If the files was installed with swinstall, you can use swlist to identify them.

example:
swlist -l file | grep /usr/lib/hpux32/libCsup.so
OS-Core.CORE2-SHLIBS: /usr/lib/hpux32/libCsup.so
OS-Core.CORE2-SHLIBS: /usr/lib/hpux32/libCsup.so.1
PHSS_35055.CORE2-SHLIBS: /usr/lib/hpux32/libCsup.so.1

Checked which packages the files came with...
find /usr/lib /usr/include -xdev -type l -user 103 -group 191 -print |\
while read FNAME;do
swlist -l file | grep $FNAME
done| cut -d: -f1 | sort -u &

OS-Core.CMDS2-AUX
OS-Core.CORE2-64SLIB
OS-Core.CORE2-SHLIBS
OS-Core.LINKER-PAOBJ
PHSS_34853.CORE2-64SLIB
PHSS_34853.CORE2-SHLIBS
PHSS_34859.CORE2-64SLIB
PHSS_34859.CORE2-SHLIBS
PHSS_34860.CORE2-64SLIB
PHSS_34860.CORE2-SHLIBS
PHSS_35055.CORE2-64SLIB
PHSS_35055.CORE2-SHLIBS
ProgSupport.CXX-INC

/Tor-Arne
I'm trying to become President of the state I'm in...
Dennis Handly
Acclaimed Contributor

Re: can we remove following HP-UX files

>Tor-Arne: Wouldn't it be advisable to either: ...
>Should all files be owned by bin:bin?

Yes. The ownership should be set to bin:bin before we package it.

Thanks for the fileset list. Though I doubt they are in any patches. You need to anchor your grep: grep " $FNAME "
(space at beginning, tab at end.)

(Your script to find them is very slow and not using vector methods. You should find all of the files, then when you do swlist, you should grep -f the previous list.)
Tor-Arne Nostdal
Trusted Contributor

Re: can we remove following HP-UX files

I've cretaed a small script which is better/faster and will give a better view.

You're right about the patches.
A file which already exist and have the wrong ownership will normally maintain the ownership when it is overwritten.
As such when a new version of /usr/lib/hpux32/libcl.so is copied into the system, and this file already existed - the ownership is maintained...
When I do the new search - and include the space and tab, the list of packages is thus reduced.

It does not change the ownership, only reports like shown below:

# /tmp/findit.sh

Reporting files with wrong ownership
and which install packages they came with

Packages:

OS-Core.CMDS2-AUX
OS-Core.CORE2-64SLIB
OS-Core.CORE2-SHLIBS
ProgSupport.CXX-INC

Files in /usr/lib /usr/include owned by uid=103, gid=191:

/usr/lib/hpux32/libcl.so
/usr/lib/hpux32/libm.so
....
I'm trying to become President of the state I'm in...
Tor-Arne Nostdal
Trusted Contributor

Re: can we remove following HP-UX files

The attached script was not posted...
I'm trying to become President of the state I'm in...
Dennis Handly
Acclaimed Contributor

Re: can we remove following HP-UX files

PHSS_35983 was just released to fix the ownership issue.