Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 6211 - The ypserver shipped with RH6.1 is broken with repsect to netgroups
Summary: The ypserver shipped with RH6.1 is broken with repsect to netgroups
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ypserv
Version: 6.1
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Cristian Gafton
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-10-21 23:10 UTC by neumann
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-10-29 18:07:00 UTC

Attachments (Terms of Use)

Description neumann 1999-10-21 23:10:27 UTC
The ypserver shipped with RH6.1 can't distribute netgroups
and we have additionally observed major stability problems.

When asking the ypserver for the netgroup by saying 'ypcat
netgroup' from a client, a new ypserv process is spawned
that will eats cpu cycles and will never die. We doubt that
this is due to a misconfiguration since we have had NIS up
and running with RH 5.2 with more or less the same
configuration files before.

We have then recompiled ypserv from the SPRM and with a
changed ypserv.spec file all seems to work well now. It
looks like the shipped ypserv RPM was compiled with options
that are marked as deprecated in the ypserv source. I have
included our ypserv.spec for your convenience below...

Summary: The NIS (Network Information Service) server.
Name: ypserv
Version: 1.3.7
Release: 4
Copyright: GNU
Group: System Environment/Daemons
Source1: ypserv-ypserv.init
Source2: ypserv-yppasswdd.init
Requires: portmap
Prereq: /sbin/chkconfig
Obsoletes: yppasswd
Buildroot: /var/tmp/%{name}-root/

The Network Information Service (NIS) is a system which
provides network
information (login names, passwords, home directories, group
to all of the machines on a network.  NIS can enable users
to login on
any machine on the network, as long as the machine has the
NIS client
programs running and the user's password is recorded in the
NIS passwd
database.  NIS was formerly known as Sun Yellow Pages (YP).

This package provides the NIS server, which will need to be
running on
your network.  NIS clients do not need to be running the

Install ypserv if you need an NIS server for your network.
You'll also
need to install the yp-tools and ypbind packages onto any
NIS client

%setup -q

cp etc/README etc/README.etc

#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \
#       --enable-tcp-wrapper --enable-fqdn --enable-yppasswd

%configure --enable-checkroot --enable-yppasswd
make install ROOT=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
install -m644 etc/ypserv.conf $RPM_BUILD_ROOT/etc
install -m755 $RPM_SOURCE_DIR/ypserv-ypserv.init
install -m755 $RPM_SOURCE_DIR/ypserv-yppasswdd.init

mkdir -p $RPM_BUILD_ROOT/sbin
mv $RPM_BUILD_ROOT/usr/sbin/ypserv


/sbin/chkconfig --add ypserv
/sbin/chkconfig --add yppasswdd

%triggerpostun -- ypserv <= ypserv-1.3.0-2
/sbin/chkconfig --add ypserv

%trigerpostun -- yppasswd
/sbin/chkconfig --add yppasswdd

if [ $1 = 0 ]; then
        /sbin/chkconfig --del ypserv
        /sbin/chkconfig --del yppasswdd

%doc etc/ypserv.conf etc/securenets etc/README.etc
%config /etc/ypserv.conf
%config /var/yp/*
%dir /var/yp
%config /etc/rc.d/init.d/*

* Tue Oct 19 1999 Janos
- compiled with different options


Comment 1 Bill Nottingham 1999-10-29 18:07:59 UTC
This should be fixed in the errata release. Please re-open if
it's not.

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