Hi<br><br>I managed to install NIS with NFS via FAI class. Here are files I am using:<br><br>1. /srv/fai/config/files/root/nis_install<br>nis nis/domain  string  YOUR_NIS_DOMAIN<br><br>This file will help install package nis (holding off any prompts in post install aptitude scripts).<br>

<br>2. Script included in class which installs nis:<br>#! /bin/bash<br># © 2012 Katarzyna "Olivia" Myrek<br><br>if [ $FAI_ACTION = "install" ]; then<br>fcopy -BMi /root/nis_install<br>echo "Copied nis_install"<br>

$ROOTCMD debconf-set-selections /root/nis_install<br>$ROOTCMD aptitude install -y nis<br>rm /target/root/nis_install<br>##Those lines need a little security tweaking<br>echo "NFSSERVER:/export/home            /home           nfs     defaults,rw,nodev,nosuid,rsize=32768,wsize=32768,_netdev,tcp 0 0" >> /target/etc/fstab<br>


echo "+::::::" >> /target/etc/passwd<br>
echo "+::::::" >> /target/etc/shadow<br>
echo "+::::::" >> /target/etc/group<br>
echo "+::::::" >> /target/etc/gshadow<br>
<br><br>fcopy -BMi /etc/defaultdomain<br>fcopy -BMi /etc/default/nis<br>fcopy -BMi /etc/yp.conf<br>fcopy -BMi /etc/nsswitch.conf<br>fcopy -BMi /etc/profile<br>fcopy -BMi /var/yp/Makefile ##not needed?<br>fcopy -BMi /usr/local/bin/passwd<br>

<br>fi<br><br>I hope this will someday help someone install nis via class;).<br><br><br clear="all">Regards, <br>Katarzyna Myrek<br>