old-www/HOWTO/NIS-HOWTO/setting_nis.html

240 lines
4.8 KiB
HTML

<HTML
><HEAD
><TITLE
>What do you need to set up NIS?&#13;</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="The Linux NIS(YP)/NYS/NIS+ HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="The RPC Portmapper
"
HREF="portmapper.html"><LINK
REL="NEXT"
TITLE="Setting Up the NIS Client"
HREF="settingup_client.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The Linux NIS(YP)/NYS/NIS+ HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="portmapper.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="settingup_client.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="SETTING_NIS"
></A
>6. What do you need to set up NIS?&#13;</H1
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN205"
></A
>6.1. Determine whether you are a Server, Slave or Client.&#13;</H2
><P
>To answer this question you have to consider two cases:</P
><P
>&#13;<P
></P
><OL
TYPE="1"
><LI
><P
>Your machine is going to be part of a network with existing NIS servers</P
></LI
><LI
><P
>You do not have any NIS servers in the network yet</P
></LI
></OL
>&#13;</P
><P
>In the first case, you only need the client programs (ypbind, ypwhich,
ypcat, yppoll, ypmatch). The most important program is ypbind. This
program must be running at all times, which means, it should always appear
in the list of processes. It is a daemon process and needs to
be started from the system's startup file (eg. /etc/init.d/nis,
/sbin/init.d/ypclient, /etc/rc.d/init.d/ypbind, /etc/rc.local).
As soon as ypbind is running your system has become a NIS client.</P
><P
>In the second case, if you don't have NIS servers, then you will also
need a NIS server program (usually called ypserv). <A
HREF="ypserv.html"
>Section 9</A
>
describes how to set up a NIS server on your Linux machine using the
<B
CLASS="COMMAND"
>ypserv</B
>
daemon.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN220"
></A
>6.2. The Software&#13;</H2
><P
>The system library "/usr/lib/libc.a" (version 4.4.2 and better) or the
shared library "/lib/libc.so.x" contain all necessary system calls to
succesfully compile the NIS client and server software. For the
GNU C Library 2 (glibc 2.x), you also need /lib/libnsl.so.1.</P
><P
>Some people reported that NIS only works with "/usr/lib/libc.a" version
4.5.21 and better so if you want to play it safe don't use older
libc's. The NIS client software can be obtained from:</P
><P
>&#13;<TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
> Site Directory File Name
ftp.kernel.org /pub/linux/utils/net/NIS yp-tools-2.8.tar.gz
ftp.kernel.org /pub/linux/utils/net/NIS ypbind-mt-1.13.tar.gz
ftp.kernel.org /pub/linux/utils/net/NIS ypbind-3.3.tar.gz
ftp.kernel.org /pub/linux/utils/net/NIS ypbind-3.3-glibc5.diff.gz</PRE
></FONT
></TD
></TR
></TABLE
>&#13;</P
><P
>Once you obtained the software, please follow the instructions which
come with the software. yp-clients 2.2 are for use with libc4 and libc5
until 5.4.20. libc 5.4.21 and glibc 2.x needs yp-tools 1.4.1 or later.
The new yp-tools 2.4 should work with every Linux libc. Since there was
a bug in the NIS code, you shouldn't use libc 5.4.21-5.4.35. Use libc
5.4.36 or later instead, or the most YP programs will not work.
ypbind 3.3 will work with all libraries, too. If you use gcc 2.8.x or
greater, egcs or glibc 2.x, you should add the ypbind-3.3-glibc5.diff
patch to ypbind 3.3. If possible you should avoid the use of ypbind 3.3
for security reasons.
ypbind-mt is a new, multithreaded daemon. It needs a Linux 2.2 kernel
and glibc 2.1 or later.</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="portmapper.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="settingup_client.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The RPC Portmapper
&#13;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Setting Up the NIS Client</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>