Bug 2545 - /usr/lib/yp/yphelper broken
Summary: /usr/lib/yp/yphelper broken
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ypserv
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jay Turner
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-05-04 17:34 UTC by mcornick
Modified: 2015-01-07 23:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-06-13 02:07:04 UTC

Attachments (Terms of Use)

Description mcornick 1999-05-04 17:34:12 UTC
The /var/yp/Makefile that ships with Red Hat 6.0 expects
shadowed passwd and group files on the YP server. An
application called /usr/lib/yp/yphelper, called from
/var/yp/Makefile, is supposed to merge the information from
/etc/passwd and /etc/shadow to make the passwd maps, and
/etc/group and /etc/gshadow to make the group maps. However,
yphelper doesn't seem to be doing its job; it produces
passwd maps with x's for all passwords, preventing logins on
YP client machines. (Similar behavior happens when merging
/etc/group and /etc/gshadow, but this is less critical.)

A workaround is to set MERGE_PASSWD and MERGE_GROUP to false
in /var/yp/Makefile, and to unshadow the passwd and group
files. This produces valid passwd and group maps, at the
expense of doing away with /etc/shadow and /etc/gshadow on
the YP server.

This happens whether the system is configured for
traditional crypted passwords or MD5 passwords.

Comment 1 moore 1999-05-06 22:59:59 UTC
This bug has SEVERE security problems. If you export a password entry
containing 'x' as the password then on all computers using this
ypserver that user can log in without any password at all!

I've fixed this bug by recompiling the yphelper source file in the
ypserv RPM. I've placed the fixed source code file and compiled
executable onto the local anon ftp server at:


I don't know exactly how you need to package it for an "official" RPM
update so if RedHat can either let me know or just make it themselves
from the source code.

The fix is just adding a test for 'x' as a password entry.

Hope this helps,


Comment 2 mcornick 1999-06-11 20:48:59 UTC
This is fixed in ypserv- (RPM currently in rawhide.)

Comment 3 Jeff Johnson 1999-06-13 02:07:59 UTC
This appears to be fixed in ypserv- Please reopen if I'm

Note You need to log in before you can comment on or make changes to this bug.