1748265 Members
3945 Online
108760 Solutions
New Discussion юеВ

ypmake passwd error

 
Kong Kian Chay
Regular Advisor

ypmake passwd error

System: HP-UX 11.0, NIS passwd database

Commd "ypmake passwd" error :
Building the passwd map(s)... problem storing 44133 e5501u5:disabled:44133:220: e5501-5,HD students :/proj3/pg/e5501u5:/usr/bin/csh
ERROR (ypmake): in passwd build.

Note:
* Attached extract of /etc/passwd
* "pwck" has NO error

* If change login-name from "e5501u5" to "abcxyz", still get error during ypmake.

* If change login-name from "e5501u5" to "##e5501u5", then NO ERROR during ypmake.

Any suggestions ?
5 REPLIES 5
Stefan Farrelly
Honored Contributor

Re: ypmake passwd error

If you put a '#' on a line in the passwd file it basically comments it out, thats why no errors. Whay have you got 'disabled' in the password field - thats not normal. Replace it with a * to disable the password. Try that.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Kong Kian Chay
Regular Advisor

Re: ypmake passwd error

Putting an "*" in the password field produces same error during "ypmake".

Addtional points :
-------------
1. "cat -ve /etc/passwd" also shows no extra special chars
in that problematic line.
2. Have also tried deleting the problematic line and keying
the whole line char by char again. Still same error.
sven verhaegen
Respected Contributor

Re: ypmake passwd error

some simple remarks ,

do you only see this error when you run yppasswd or also when you run ypmake manually

your password file does it generate from the standard location or not , if not check Makefile and ypmake, and cfr both have the DIR= and PWFILE= variables set such that the correct passwd file to be used is set

there could be a case of /var/yp containing a passwd file that could be used by accident to create the db incorrectly

also corruption int he actual passwd file could give such issue

one case i remeber was very peticular and held a strange problem , it was related to /usr/etc/yp/makedbm , 2 machines had the same setup on YP but one failed with error (ypmake): in hosts built passwd built .....=> all maps can't be built .. i dont know if you cannot build any map , but the solution here was to take the makedbm from a working machine and put in on the failing machine , apparently the makedbm was corrupted because it worked afterwards

the way we got behind this lasty problem was loking directly in the ypmake script e.g. :

invest on ypmake

Added some echo commands to ypmake script to find out what script really does in more detail.

We found out that the functions in the ypmake script, e.g. hosts(), result
in an return value 11.

The executed command in ypmake is:

$NIS_DIR/stdhosts $1 | awk 'BEGIN { OFS="\t"; } $1 !~ /^#/ { print $1, $0 }' | $MAKEDBM - $MAPDIR/$MAPNAME1Tested the commands singular:
($NIS_DIR=/usr/etc/yp; $MAKEDBM=/usr/etc/yp/makedbm ;
$MAPDIR=/usr/etc/yp/domain_name ; $MAPNAME=hosts.byaddr)
/usr/etc/yp/stdhosts /etc/hosts is o.k.
/usr/etc/yp/stdhosts /etc/hosts | awk 'BEGIN { OFS="\t"; } $1 !~ /^#/ {
print $1, $0 }' is o.k. (returnvalue 0!!!)

there the error came on makedbm , perhaps if non of this points to a solution you could also put echo's in the script or a set -x if you know that option (will show on screen the execution of a script) and point you to the real culprit
...knowing one ignores a greath many things is the first step to wisdom...
Kong Kian Chay
Regular Advisor

Re: ypmake passwd error

Have verified nothing wrong with /var/yp/ypmake.

Additional Clues Found :

* If I move record "44133" to bottom of /etc/passwd
after last record "44300", everything else remains
unchanged, the "ypmake passwd" error still points
to "44133".

* If I change UID "44133" to "44301", then
"ypmake passwd" has NO error !!

NOTE: The UID "44133" was previously used by
an account has already been deleted.

Any suggestions based on this new clue ??
Kong Kian Chay
Regular Advisor

Re: ypmake passwd error

Attached the explanation from HP for benefit of all:
Call Ref# 2200-365449 (closed 6-Sep-2002)