From: Nicolai Langfeldt <janl@eris.uio.no>
Subject: Re: NIS on Red Hat 4.2
Date: 1997/12/23 [thread overview]
Message-ID: <w4790tcxpy7.fsf@eris.uio.no> (raw)
In-Reply-To: 349F3A8A.F88DB758@ellpspace.math.ualberta.ca
Maurice Hilarius <maurice@ellpspace.math.ualberta.ca> writes:
> Has anyone here had any experience with setting up NIS on an Alpha
> running Red Hat Linux?
> Any help would be greatly appreciated.
This works on Rh4.2/Intel at least. yp.conf and nsswitch.conf are
documented. NISDOMAIN should just contain the nisdomain name, the
'domain' thing in yp.conf seems to be inefectual.
/etc/rc.d/init.d/nis:
---
#!/bin/sh
#
# nis This shell script takes care of starting and stopping
# the NIS services.
#
# Author: Nicolai Langfeldt (janl@math.uio.no)
#
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
exit 0
fi
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -f /etc/yp.conf ] || exit 0
[ -f /etc/nsswitch.conf ] || exit 0
[ -f /etc/NISDOMAIN ] || exit 0
# See how we were called.
case "$1" in
start)
# Start daemons.
echo -n "Setting domainname: "
read NISDOMAIN </etc/NISDOMAIN
domainname $NISDOMAIN
echo $NISDOMAIN
# NOTE that we DON'T run YPBIND. The clever nys libc manages
# without ypbind.
;;
stop)
;;
*)
echo "Usage: nis {start|stop}"
exit 1
esac
exit 0
---
Nicolai
prev parent reply other threads:[~1997-12-23 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-22 5:00 NIS on Red Hat 4.2 Maurice Hilarius
1997-12-23 5:00 ` Nicolai Langfeldt [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox