System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

swinstall ERROR: File "/etc/passwd"

susan.derose
Advisor

swinstall ERROR: File "/etc/passwd"

Hi guys,

I got this in my swagent.log:
ERROR: File "/etc/passwd" should have size "758" bytes but the actual
size is "945" bytes.

Is this any cause for alarm and can someone help me to understand this? In the bundle that I was installing, is there something that is expecting that the passwd to be "945" bytes? If so, why would that be? I don't understand the logic behind this one. I mean what is wrong with my passwd file being 758 bytes? And does that also mean, that whatever the bundle had to do with my passwd file it did not do?

Thanks,
Susan
11 REPLIES
Dennis Handly
Acclaimed Contributor

Re: swinstall ERROR: File "/etc/passwd"

>I don't understand the logic behind this one.

Neither do I. The file should be marked with is_volatile so swverify doesn't check it. I only see:
OS-Core.UX-CORE: /usr/newconfig/etc/passwd
James R. Ferguson
Acclaimed Contributor

Re: swinstall ERROR: File "/etc/passwd"

Hi Susan:

A few more details would be helpful. Is this a cold-install? What release? Are you installing only a product and if so what is it?

I would suspect that a copy of '/etc/passwd' is being placed in '/usr/newconfig/etc/passwd' and that the INFO file for the fileset contains erroneous information.

Regards!

...JRF...
susan.derose
Advisor

Re: swinstall ERROR: File "/etc/passwd"

Hi James,
Yes, this is a 11.31 IA64 (not a new install)


PatchBundle includes:
copyright "(c)Copyright 1983-2008 Hewlett-Packard Co., All Rights Reserved"
contents PHCO_38050,r=1.0,a=HP-UX_B.11.31_IA/PA,v=HP
contents PHKL_36261,r=1.0,a=HP-UX_B.11.31_IA/PA,v=HP
contents PHKL_37460,r=1.0,a=HP-UX_B.11.31_IA/PA,v=HP
contents PHKL_37462,r=1.0,a=HP-UX_B.11.31_IA/PA,v=HP
contents PHKL_37463,r=1.0,a=HP-UX_B.11.31_IA,v=HP
contents PHKL_38034,r=1.0,a=HP-UX_B.11.31_IA,v=HP
contents PHKL_38035,r=1.0,a=HP-UX_B.11.31_IA/PA,v=HP
contents PHKL_38038,r=1.0,a=HP-UX_B.11.31_IA/PA,v=HP
contents PHKL_38040,r=1.0,a=HP-UX_B.11.31_IA/PA,v=HP
contents PHKL_38080,r=1.0,a=HP-UX_B.11.31_IA/PA,v=HP
contents PHKL_38091,r=1.0,a=HP-UX_B.11.31_IA/PA,v=HP
contents PHKL_38398,r=1.0,a=HP-UX_B.11.31_IA/PA,v=HP
contents PHKL_38414,r=1.0,a=HP-UX_B.11.31_IA/PA,v=HP
contents PHSS_37553,r=1.0,a=HP-UX_B.11.31_IA,v=HP
contents PHSS_37955,r=1.0,a=HP-UX_B.11.31_IA/PA,v=HP


I am getting lots of file size mismatches as well as mtime issues.

I have checked with swlist -l fileset -a state and all the above packages are in configured state.

Does that mean I am ok here?
James R. Ferguson
Acclaimed Contributor

Re: swinstall ERROR: File "/etc/passwd"

Hi (again) Susan:

> I am getting lots of file size mismatches as well as mtime issues. I have checked with swlist -l fileset -a state and all the above packages are in configured state.

I'm confused. Nothing should have been installed if there were errors.

Would you do:

# swverify \*

...to see what condition things are in...

# swverify \* -d @ /depot

...for the bundle you installed

Does the patch bundle simply contain the patches you listed because they are dependencies of others you want to add, and those patches are already installed (and hence configured)?

Regards!

...JRF...


Dennis Handly
Acclaimed Contributor

Re: swinstall ERROR: File "/etc/passwd"

>I am getting lots of file size mismatches as well as mtime issues.

Can you show us more details? And the original one for /etc/passwd.

Is this a swverify log in swagent.log?
susan.derose
Advisor

Re: swinstall ERROR: File "/etc/passwd"

James,

Essentially yes. They are patches that got copied into a depot and then got bundled and installed.

swjob -a log my_ux01-0032 @ ux01:/ | more show up with:
...
ERROR: File "/etc/services" should have size "11659" bytes but the
ERROR: File "/etc/shells" should have mtime "1179164397" but the
ERROR: Verify failed system_config.network,l=/,r=1.00
...

I'm not sure if they are dependencies.
Here is what the HP script (create_depot_hpux.11.31) says when I untared the thing:


"copy patches into a depot and bundle them."
etc.......


Susan

James R. Ferguson
Acclaimed Contributor

Re: swinstall ERROR: File "/etc/passwd"

Hi (again) Susan:

> They are patches that got copied into a depot and then got bundled and installed.

This doesn't seem right. Is the output you showed from:

swjob -a log my_ux01-0032 @ ux01:/

...a 'swinstall' or a 'swcopy' session?

Did you download the patches onto a PC, perhaps and FTP them to your Unix server? Something is seriously amiss.

If the 'swjob' output you show is from a 'swinstall' session, please post the exact command you used.

Regarda!

...JRF...


Dennis Handly
Acclaimed Contributor

Re: swinstall ERROR: File "/etc/passwd"

>create_depot_hpux.11.31 says when I untared the thing: copy patches into a depot and bundle them.

This script does a swcopy of each patch into a bigger depot. Then it does a swverify on the result. Is this the swverify errors you are getting from swagent.log?

Can you show us the section that is getting the error:
======= 05/22/08 02:50:25 PDT BEGIN verify AGENT SESSION (pid=11238)
(jobid=XXXX-0221)
...
Target logfile: XXXX:/var/adm/sw/swagent.log
======= 05/22/08 03:08:37 PDT END verify AGENT SESSION (pid=11238)
(jobid=XXXX-0221)

This will show what is being verified.
susan.derose
Advisor

Re: swinstall ERROR: File "/etc/passwd"

Hi Dennis,

I cut and pasted most of the log from swagent.log. It is very long to put everything here, so I did my best.

CUT BEGIN verify AGENT SESSION (pid=90454)
(jobid=ux01-0032)

* Agent session started for user
"root@ux01". (pid=90454)

* Beginning Analysis Phase.
* Target: ux01:/
* Target logfile: ux01:/var/adm/sw/swagent.log
* Reading source for file information.
* Configured
* Configured BLKO-MS-KRN,l=/,r=C.01.05.00





ERROR: File "/etc/nsswitch.conf" should have owner,uid "root,0" but
the actual owner,uid is "bin,3".
ERROR: File "/etc/nsswitch.conf" should have group,gid "sys,3" but
the actual group,gid is "bin,1".
ERROR: File "/etc/nsswitch.conf" should have mtime "1179238840" but
the actual mtime is "1195523219".
ERROR: File "/etc/nsswitch.conf" should have size "394" bytes but the
actual size is "382" bytes.
ERROR: File "/etc/passwd" should have mtime "1179232778" but the
actual mtime is "1214721237".
ERROR: File "/etc/passwd" should have size "758" bytes but the actual
size is "927" bytes.
ERROR: File "/etc/shells" should have mtime "1179164397" but the
actual mtime is "1657457240".
ERROR: Fileset "system_tools.tools,l=/,r=1.02" had file errors.




* Summary of Analysis Phase:
Verified B2491BA,l=/,r=B.11.31
Verified B3701AA,l=/,r=C.04.55.00

Verified OS-Core.SYS-ADMIN,l=/,r=B.11.31
Verified OS-Core.UX2-CORE,l=/,r=B.11.31
WARNING: Verified with warnings OS-Core.UX-CORE,l=/,r=B.11.31
Verified OS-Core.ADMN-ENG-A-MAN,l=/,r=B.11.31
Verified OS-Core.C-MIN,l=/,r=B.11.31
Verified OS-Core.C-MIN-64ALIB,l=/,r=B.11.31
ERROR: File "/etc/group" should have size "233" bytes but the actual
size is "210" bytes.
ERROR: File "/etc/passwd" should have mtime "1227232778" but the
actual mtime is "1214721237".
ERROR: File "/etc/passwd" should have size "758" bytes but the actual
size is "945" bytes.

* Summary of Analysis Phase:
Verified B2491BA,l=/,r=B.11.31


ERROR: Verify failed system_config.network,l=/,r=1.00
WARNING: Verified with warnings system_config.roothome,l=/,r=1.00
ERROR: Verify failed system_config.security,l=/,r=1.00
Verified
system_info.product,l=/,r=2.04
Verified system_tools.manpages,l=/,r=1.02
ERROR: Verify failed system_tools.tools,l=/,r=1.02
Verified utilProvider.UTIL-RUN,l=/,r=A.01.05.00.00
ERROR: 4 of 1102 filesets had Errors
ERROR: The Analysis Phase had errors and warnings. See the above
output for details.


======= CUT END verify AGENT SESSION (pid=90454)


Dennis Handly
Acclaimed Contributor

Re: swinstall ERROR: File "/etc/passwd"

>It is very long to put everything here

You could also attach it.

>* Target: ux01:/

OK, this is swverify on the whole system, not just patches.

>
ERROR: File "/etc/nsswitch.conf" should have owner,uid "root,0" but
the actual owner,uid is "bin,3".

It would be nice if you included the line with the fileset that contains that file. Perhaps something like:
ERROR: Fileset "system_tools.tools,l=/,r=1.02" had file errors.

I'm not sure if this describes the errors that preceded it or what follows?

All of these ERRORs are on files that should ignore time or size.

* Summary of Analysis Phase:
Verified B2491BA,l=/,r=B.11.31

Did it actually have this twice?

I probably should have suggested you do this when I originally replied:
swlist -l file -a is_volatile OS-Core.UX-CORE | grep -e /etc/passwd -e /etc/group -e /etc/shells
susan.derose
Advisor

Re: swinstall ERROR: File "/etc/passwd"

Ok - it looks like some admin did not take the time to mark his bundle with the "is_volatile" option.

Susan