« Le système d'exploitation GNU-Linux/Le partage de fichiers NFS » : différence entre les versions
Contenu supprimé Contenu ajouté
Ligne 100 :
''En construction !''
== NIS ==
Pour installé sous Débian, utilisez la commande
# Apt-get install nis
Lors de l'installation vous aurez le choix du domaine, il peut être différent du domaine internet.
Le document d'aide pour la configuration du serveur et du client
'''Le serveur'''
Ligne 117 :
Dans etc/defaultdomain , vérifier que le domaine choisis lors de l'installation est présent.
Pour les restriction :
# vi /etc/ypserv.securenets
#
# securenets This file defines the access rights to your NIS server
# for NIS clients (and slave servers - ypxfrd uses this
# file too). This file contains netmask/network pairs.
# A clients IP address needs to match with at least one
# of those.
#
# One can use the word "host" instead of a netmask of
# 255.255.255.255. Only IP addresses are allowed in this
# file, not hostnames.
#
# Always allow access for localhost
255.0.0.0 127.0.0.0
# This line gives access to everybody. PLEASE ADJUST!
255.255.255.0 192.168.30.0
Ligne 151 :
'''Le client'''
ip serveur /etc/yp.conf
domain /etc/defaultdomain
Lancez le client
/etc/init.d/nis start
cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
# vipw
|