Posts

Showing posts with the label solaris NIS

Configure Solaris NIS

configure NIS Master Server : 1. copy /etc/nsswitch.nis to /etc/nsswitch.conf 2. create domain name (i.e : #domainname aghiel.lab.com) and make it permanently (/etc/defaultdomain) 3. Make sure file list below are already in /etc, if not, create it using 'touch' command : /etc/ethers, /etc/bootparams, /etc/locale, /etc/netmasks, /etc/netgroup, /etc/timezone 4. initialize master server : #ypinit -m 5. Make sure yp daemon is running, if not start it using : #/usr/lib/netsvc/yp/ypstart 6. Go to /var/yp and run /usr/ccs/bin/make onto it : #cd /var/yp #/usr/ccs/bin/make 7. If you want to stop NIS service on NIS master : #/usr/lib/netsvc/yp/ypstop 8. test it using : #ypwhich -m or #ypcat -x configure NIS client : 1. copy /etc/nsswitch.nis to /etc/nsswitch.conf 2.create domainame (i.e :#domainname aghiel.lab.com) and store it in /etc/defaultdomain. 3.run ypinit -c 4.run /usr/lib/netsvc/yp/ypstart 5. test it using : #ypwhich -m configure NIS Slave Server: 1. copy /etc/nsswitch.ni...