For When You Can't Have The Real Thing
[ start | index | login ]
start > CentOS > 6 > nis > Client Setup

Client Setup

Created by dave. Last edited by dave, 4 years and 359 days ago. Viewed 1,246 times. #1
[edit] [rdf]
labels
attachments
(2019-03-25)

NIS client setup cookbook

#!/bin/bash

DOMAIN=my.nis.domain SERVERNAME=server4.my.nis.domain SERVERIP="1.2.3.4"

rpm -ivh >>http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum -y install ypbind rpcbind

ypdomainname $DOMAIN echo "NISDOMAIN=$DOMAIN" >> /etc/sysconfig/network echo "$SERVERIP $SERVERNAME' >> /etc/hosts authconfig --enablenis --nisdomain=$DOMAIN --nisserver=$SERVERNAME --update chkconfig rpcbind on chkconfig ypbind on echo 'session optional pam_mkhomedir.so skel=/etc/skel umask=077' >> /etc/pam.d/password-auth echo 'session optional pam_mkhomedir.so skel=/etc/skel umask=077' >> /etc/pam.d/system-auth

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt