NIS:
setup: ypbind,ypserv,yp-tools
chkconfig ipchains off, service ipchains stop
at /etc/sysconfig/network add the line : NISDOMAIN=ourdomainname
(reboot or type: domainname ourdomainname)
make backup of /var/yp/Makefile : all: passwd group
/etc/rc.d/init.d/portmap start
ypserv start
at /var/yp --> make
ypinit (crtl+D)
/etc/rc.d/init.d/yppasswdd start
ypserv restart
ps auxf | grep yp
check /var/log/messages
CLIENT SIDE: setup: authconfig ,ypbind ,ypcat passwd
at /var/yp type : make.
automount: on nis client install autofs
change "/misc" in /etc/auto.master to:
/home /etc/auto.home --timeout 60
create a file called /etc/auto.home with the folowing content:
* -rw,soft,intr server_host_ip:/home/&
umount /home
/etc/rc.d/init.d/autofs start
(at the server) : /etc/exports add this line:
/home client_host_ip(rw)
on server: /etc/rc.d/init.d/nfs start --> try 2 log off/on.
now from the client try to log on.
|