How to configure ubuntu to join an nis domain

Johannes Behr johannes.behr at
Mon Sep 19 15:04:53 UTC 2005

On Mon, 2005-09-19 at 12:03 +0800, Oca Vidal wrote:
> Hi,
> I just installed ubuntu 5.04.  it installed flawlessly on my test
> machine.  not i have some installation and setup to tackle joning this
> machine to our nis domain.  any one able to join ubuntu to an nis
> domain?

What I do/did:

1. Install yp/nis-client (asks for nis-domain)

	apt-get install nis

2. Configure /etc/nsswitch.conf to use the nis information

  add nis to all sections which should work with the nis service:

  my /etc/nsswitch.conf:

# /etc/nsswitch.conf
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         files nis
shadow:         files nis
group:          files nis

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

automount:      files nis

3. Install auto-mounter to work with nis

  apt-get install auto-fs

best regards,

More information about the ubuntu-users mailing list