Hi<br><br>I've been trying to install nis client using a class. Unfortunately nis package requires attention while installing. It shows a prompt for nis domain during installation. <br><br>Anyone managed to install nis automatically?<br>

<br>I tried to create script called by a hook:<br><br>  3 <br>  4 if [ $FAI_ACTION = "install" ]; then<br>  5 fcopy -BMi /root/nis_install<br>  6 echo "Copied nis_install"<br>  7 ls /target/root/<br>  8 sleep 10<br>

  9 $ROOTCMD debconf-set-selections /root/nis_install<br> 10 $ROOTCMD aptitude install -y nis<br> 11 #rm /target/root/nis_install<br><br> 13 echo "line with nfs exports" >> /target/etc/fstab<br> 14 <br> 15 <br>

 16 $ROOTCMD /etc/init.d/nis stop<br> 17 <br> 18 fcopy -BMi /etc/defaultdomain<br> 19 fcopy -BMi /etc/default/nis<br> 20 fcopy -BMi /etc/yp.conf<br> 21 fcopy -BMi /etc/nsswitch.conf<br> 22 <br><br> 24 echo "+::::::" >> /target/etc/passwd<br>

 25 echo "+::::::" >> /target/etc/shadow<br> 26 echo "+::::::" >> /target/etc/group<br> 27 echo "+::::::" >> /target/etc/gshadow<br> 28 <br> 29 fi<br><br>When I manually execute all those commands everything is working properly. I am binding to nis dommain without a problem. When I run this script as a hook, then I can't log using nis. <br>

<br><br clear="all">Regards,<div>Olivia<br></div><br>