Servicios

Web hosting
Ver »
Páginas Web
Ver »
Soporte UNIX
Ver »
UNIX TIPS
Ver »

CONFIGURACION CLIENTE CONEXION A SERVIDOR NIS+

# cd /usr/lib/nis

ls

nisaddent     nisclient   nisopaccess   nispopulate   nissetup      nisstat
nisauthconf   nisctl        nisping       nisserver     nisshowcache  nisupdkeys

#./nisauthconf  dh640-0 des
#./nisclient  -i -d acatlan.unam.mx.   -h morfeo
                    o una variante ./nisclient  -i -d  -a 132.248.180.106
                                  ./nisclient   -i -h morfeo  -d acatlan.unam.mx.
---DESPUES MODIFICAMOS PARA QUE RECONOZCA ELL EXPORT DEL SERVER LAS ESTACIONES:

vi /etc/vfstab
agreramos # ala linea que contiene el /export/home/
despues de ella agregamos:
morfeo.acatlan.unam.mx:/export/home    -/export/home  nfs 2  yes -
Reiniciamos el server
#reboot
--------------------------------------------------------------------------------
modificamos /etc/nsswitch.conf
se comenta linea # hosts: nisplus [NOTFOUND=return] files y se descomenta hosts:nisplus dns [NOTFOUND=return] files
# consult /etc "files" only if nisplus is down.
#hosts:      nisplus [NOTFOUND=return] files
ipnodes:    files
# Uncomment the following line and comment out the above to resolve
# both IPv4 and IPv6 addresses from the ipnodes databases. Note that
# IPv4 addresses are searched in all of the ipnodes databases before
# searching the hosts databases. Before turning this option on, consult
# the Network Administration Guide for more details on using IPv6.
#ipnodes:    nisplus [NOTFOUND=return] files

#Uncomment the following line, and comment out the above, to use both DNS
#and NIS+.  You must also set up the /etc/resolv.conf file for DNS name
#server lookup.  See resolv.conf(4).
hosts:     nisplus dns [NOTFOUND=return] files

services:   nisplus [NOTFOUND=return] files
networks:   nisplus [NOTFOUND=return] files
protocols:  nisplus [NOTFOUND=return] files
rpc:        nisplus [NOTFOUND=return] files
ethers:     nisplus [NOTFOUND=return] files
netmasks:   nisplus [NOTFOUND=return] files
bootparams: nisplus [NOTFOUND=return] files

Reiniciamos
#reboot

Regresar


Random TIPS

RESPALDAR ARCHIVO wtmpx CON FORMATO LEGIBLE

root@ # cd /var/adm/
root@ # ls -l wtmpx
-rw-r--r--   1 adm      adm      1539641784 Apr 15 18:02 wtmpx
root@ # /usr/lib/acct/fwtmp < /var/adm/wtmpx > /var/adm/wtmpx.`date +%Y%m%d`
root@ # ls -l | grep wtmpx
-rw-r--r--   1 adm      adm      1539693492 Apr 15 18:09 wtmpx
-rw-r--r--   1 root     other    355949528 Apr 15 18:09 wtmpx.20150415
root@ # > /var/adm/wtmpx
root@ # ls -l /var/adm/wtmpx
-rw-r--r--   1 adm      adm          372 Apr 15 18:11 /var/adm/wtmpx
root@ # gzip wtmpx.20150415
root@ # ls -l | grep wtmpx
-rw-r--r--   1 adm      adm        10044 Apr 15 18:12 wtmpx
-rw-r--r--   1 root     other    42045437 Apr 15 18:09 wtmpx.20150415.gz
root@ #

free counters