- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ypmake passwd error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 11:06 PM
тАО08-21-2002 11:06 PM
ypmake passwd error
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 11:15 PM
тАО08-21-2002 11:15 PM
Re: ypmake passwd error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2002 12:28 AM
тАО08-22-2002 12:28 AM
Re: ypmake passwd error
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2002 03:20 AM
тАО08-22-2002 03:20 AM
Re: ypmake passwd error
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2002 07:58 PM
тАО08-22-2002 07:58 PM
Re: ypmake passwd error
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 ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2002 12:42 AM
тАО09-12-2002 12:42 AM
Re: ypmake passwd error
Call Ref# 2200-365449 (closed 6-Sep-2002)