Configurazione di un server NIS (Network Information Service)
Operazioni preliminari
rpm --query portmap |
|
|
|
[servizio@server ~]$ grep ^portmap /etc/hosts.allow |
[servizio@server ~]$ grep ^[^#] /etc/yp.conf |
[root@server ~]# domainname |
[root@server ~]# echo internalia > /etc/defaultdomain |
domainname `cat /etc/defaultdomain` |
[servizio@server ~]$ /usr/sbin/ypserv -version |
ypserv (ypserv) 2.14 |
[servizio@server ~]$ cat /etc/ypserv.securenets |
ypserv: 127.0.0.0/255.0.0.0,192.168.1.0/255.255.255.0 |
[servizio@server ~]$ cat /etc/ypserv.conf |
[servizio@server ~]$ cat /etc/host.conf |
[servizio@server ~]$ cat /etc/nsswitch.conf |
[servizio@server ~]$ cat /etc/resolv.conf |
ALL = passwd group hosts rpc services netid protocols netgrp |
[root@server ~]# /usr/lib/yp/ypinit -m |
[root@server ~]# /usr/sbin/ypserv |
[root@server ~]# /etc/init.d/nis start |
[root@server ~]# rpcinfo -u localhost ypserv |
[root@server ~]# rpcinfo -u localhost ypbind |
[root@server ~]# ypbind |
[binding to YP server .......... backgrounded] |
[root@server ~]# ypbind -d |
192.168.1.40 principale.internalia principale |
[servizio@server ~]$ ypwhich |
[servizio@server ~]$ ypcat passwd |
[servizio@server ~]$ grep ^portmap /etc/hosts.allow |
[tizio@client ~]$ cat /etc/yp.conf |
[root@client ~]# ypbind -c |
[root@client ~]# ypbind |
[tizio@client ~]$ ll /var/yp/binding/ |
[tizio@client ~]$ /usr/sbin/rpcinfo -p localhost |
[tizio@client ~]$ ypwhich |
[tizio@client ~]$ ypcat passwd |
[root@client ~]# ypwhich -m |
[tizio@client ~]$ ypwhich -m |
