NIS Server - Master Setup

nis-master | (netbsd) | nis-slave | nis-client | nis-ops

tested on netbsd93

see nis-master for overall settings and security warnings. this guide is only designed to keep netbsd-specific setup apart.

Install

built-in

Daemons (master + slave)

vi /etc/rc.conf

rpcbind=yes
ypbind=yes
ypserv=yes
yppasswdd=no

/etc/rc.d/rpcbind restart
/etc/rc.d/ypserv restart
/etc/rc.d/ypbind restart
#/etc/rc.d/yppasswdd restart

Setup

cd /var/yp/

mv -i Makefile.yp Makefile.yp.dist
grep -vE '^#|^$' Makefile.yp.dist > Makefile.yp.clean
grep -vE '^#|^$' Makefile.yp.dist > Makefile.yp
vi Makefile.yp

NOPUSH?=        "flase"
MINUID?=        1000
MINGID?=        1000

all:    passwd group

Master setup

ypinit -m

pkg_add bash
ln -s /usr/pkg/bin/bash /bin/bash
vi /etc/shells

/bin/bash

Resources

23.6.3. Network Information Service (NIS/YP) http://www.netbsd.org/docs/guide/en/chap-net-intro.html#chap-net-intro-nsconcepts-nis

how to set up nfs and nis https://wiki.netbsd.org/tutorials/how_to_set_up_nfs_and_nis/

NIS in NetBSD https://www.silas.net.br/tech/netbsd/nis-in-netbsd.html

うにっくすさんの覚え書き - NetBSD - NIS https://web.archive.org/web/20090105175332/http://www.nognog.com/techmemo/NetBSD_NIS_HOWTO.php

solaris

Adding a New Slave Server http://docs.oracle.com/cd/E19455-01/806-1387/6jam692cm/index.html

NIS Troubleshooting on Solaris https://web.archive.org/web/20150902195323/http://www.softpanorama.net/Net/Application_layer/NIS/nis_troubleshooting.shtml

Solaris Naming Services Architecture http://www.informit.com/articles/article.aspx?p=24381&seqNum=11


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun