Mudanças entre as edições de "Minicluster:NIS"

De WikiLICC
Ir para: navegação, pesquisa
m (Servidor NIS)
m (Cliente NIS)
Linha 21: Linha 21:
  
 
== Cliente NIS ==
 
== Cliente NIS ==
  [root@cell100]$ chkconfig --level 345 ypbind on    
+
  [root@cell100]$ chkconfig --level 345 ypbind on
 +
nisdomainname nismatrix                                       
 +
root@cell100 ~ # nisdomainname
  
 
== Referências ==
 
== Referências ==
 
* http://under-linux.org/wiki/Tutoriais/LDAP/LDAP-NIS-NFS
 
* http://under-linux.org/wiki/Tutoriais/LDAP/LDAP-NIS-NFS
 
* http://www.wellho.net/solutions/general-what-are-nis-ldap-dns-and-bind.html
 
* http://www.wellho.net/solutions/general-what-are-nis-ldap-dns-and-bind.html

Edição das 15h35min de 8 de julho de 2010

Servidor NIS

  • Instale o servidor NIS
[root@one]$ yum install ypserv
[root@one]$ chkconfig --level 345 ypserv on
[root@one]$ nisdomainname nismatrix 
[root@one]$ nisdomainname
nismatrix
[root@one]$ /etc/init.d/ypserv start
Starting YP server services:             [  OK  ]
[root@one]$ rpcinfo -u one ypserv
program 100004 version 1 ready and waiting
program 100004 version 2 ready and waiting
  • Editar linhas em
[root@one]$ vi /var/yp/Makefile
..
ALIASES     = $(YPSRCDIR)/aliases  # aliases could be in /etc or /etc/mail
#ALIASES    = /etc/mail/aliases
..
  • Gerar o banco de dados no servidor
[root@one]$ /usr/lib64/yp/ypinit -m

Cliente NIS

[root@cell100]$ chkconfig --level 345 ypbind on
nisdomainname nismatrix                                        
root@cell100 ~ # nisdomainname

Referências