Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* NIS on Red Hat 4.2
@ 1997-12-22  5:00 Maurice Hilarius
  1997-12-23  5:00 ` Nicolai Langfeldt
  0 siblings, 1 reply; 2+ messages in thread
From: Maurice Hilarius @ 1997-12-22  5:00 UTC (permalink / raw)



Has anyone here had any experience with setting up NIS on an Alpha
running Red Hat Linux?
Any help would be greatly appreciated.

--
Seasons Greetings,

Maurice W. Hilarius
 Telephone: 01-403-456-1510
 email:harddata@bigfoot.com
 Edmonton, AB, Canada





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: NIS on Red Hat 4.2
  1997-12-22  5:00 NIS on Red Hat 4.2 Maurice Hilarius
@ 1997-12-23  5:00 ` Nicolai Langfeldt
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolai Langfeldt @ 1997-12-23  5:00 UTC (permalink / raw)



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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-12-23  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-12-22  5:00 NIS on Red Hat 4.2 Maurice Hilarius
1997-12-23  5:00 ` Nicolai Langfeldt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox