/ Linux Reviews / System administration / The Linux NIS(YP) / NYS / NIS+ HOWTO - en


Thorsten Kukuk

v1.3, 1 July 2003

This document describes how to configure Linux as NIS(YP) or NIS+ client and how to install as NIS server.

Table of Contents
1. Introduction
1.1. New Versions of this Document
1.2. Disclaimer
1.3. Feedback and Corrections
1.4. Acknowledgements
2. Glossary and General Information
2.1. Glossary of Terms
2.2. Some General Information
3. NIS, NYS or NIS+ ?
3.1. libc 4/5 with traditional NIS or NYS ?
3.2. glibc 2 and NIS/NIS+
3.3. NIS or NIS+ ?
4. How it works
4.1. How NIS works
4.2. How NIS+ works
5. The RPC Portmapper
6. What do you need to set up NIS?
6.1. Determine whether you are a Server, Slave or Client.
6.2. The Software
7. Setting Up the NIS Client
7.1. The ypbind daemon
7.2. Setting up a NIS Client using Traditional NIS
7.3. Setting up a NIS Client using NYS
7.4. Setting up a NIS Client using glibc 2.x
7.5. The nsswitch.conf File
7.6. Shadow Passwords with NIS
7.6.1. Linux
7.6.2. Solaris
7.6.3. PAM
8. What do you need to set up NIS+ ?
8.1. The Software
8.2. Setting up a NIS+ client
8.3. NIS+, keylogin, login and PAM
8.4. The nsswitch.conf File
9. Setting up a NIS Server
9.1. The Server Program ypserv
9.2. The Server Program yps
9.3. The Program rpc.ypxfrd
9.4. The Program rpc.yppasswdd
10. Verifying the NIS/NYS Installation
11. Creating and Updating NIS maps
11.1. Creating new NIS maps
11.2. Updating NIS maps
11.3. Length of Map entries
12. Surviving a Reboot
12.1. NIS Init Script
12.2. NIS Domain Name
12.3. Distribution-specific Issues
12.3.1. Caldera 2.x
12.3.2. Debian
12.3.3. Red Hat Linux 6.x, 7.x, 8.x and 9
12.3.4. SuSE Linux 6.x and 7.x
12.3.5. SuSE Linux 8.x and later
13. Changing passwords with rpasswd
13.1. Server Configuration
13.1. Client Configuration

1. Introduction

More and more, Linux machines are installed as part of a network of computers. To simplify network administration, most networks (mostly Sun-based networks) run the Network Information Service. Linux machines can take full advantage of existing NIS service or provide NIS service themselves. Linux machines can also act as full NIS+ clients, this support is in beta stage.

This document tries to answer questions about setting up NIS(YP) and NIS+ on your Linux machine. Don't forget to read Section 5.

The NIS-Howto is edited and maintained by

        Thorsten Kukuk, <kukuk@suse.de>

The primary source of the information for the initial NIS-Howto was from:

Andrea Dell'Amico       <adellam@ZIA.ms.it>
Mitchum DSouza          <Mitch.DSouza@NetComm.IE>
Erwin Embsen            <erwin@nioz.nl>
Peter Eriksson          <peter@ifm.liu.se>

who we should thank for writing the first versions of this document.

1.1. New Versions of this Document

You can always view the latest version of this document on the World Wide Web via the URL http://www.linux-nis.org/nis-howto/HOWTO/NIS-HOWTO.html.

New versions of this document will also be uploaded to various Linux WWW and FTP sites, including the LDP home page.

Links to translations of this document could be found at http://www.linux-nis.org/nis-howto/.

1.2. Disclaimer

Although this document has been put together to the best of my knowledge it may, and probably does contain errors. Please read any README files that are bundled with any of the various pieces of software described in this document for more detailed and accurate information. I will attempt to keep this document as error free as possible.

1.3. Feedback and Corrections

If you have questions or comments about this document, please feel free to mail Thorsten Kukuk, at kukuk@linux-nis.org. I welcome any suggestions or criticisms. If you find a mistake with this document, please let me know so I can correct it in the next version. Thanks.

Please do not mail me questions about special problems with your Linux Distribution! I don't know every Linux Distribution. But I will try to add every solution you send me.

1.4. Acknowledgements

We would like to thank all the people who have contributed (directly or indirectly) to this document. In alphabetical order:

Byron A Jeff            <byron@cc.gatech.edu>
Markus Rex              <msrex@suse.de>
Miquel van Smoorenburg  <miquels@cistron.nl>
Dan York                <dyork@lodestar2.com>
Christoffer Bromberg    <christoffer@web.de>

Theo de Raadt is responsible for the original yp-clients code. Swen Thuemmler ported the yp-clients code to Linux and also ported the yp-routines in libc (again based on Theo's work). Thorsten Kukuk has written the NIS(YP) and NIS+ routines for GNU libc 2.x from scratch.

/ Linux Reviews / System administration / The Linux NIS(YP) / NYS / NIS+ HOWTO

Meet new people

Adult Dating