Pages : 1
#1 Le 08/06/2010, à 10:43
- ayme
dailog terminal
bonjour
pour construire la maps de serveur NIS (ypserv) il faut lancer la commande
/usr/lib/yp/ypinit -m
il me demande d'entré les nom des machine
comment je peut crier un script qui contient ces noms et répond directement a ces question
voici la commande sur le terminal
root@aymen-laptop:/home/aymen# /usr/lib/yp/ypinit -m
At this point, we have to construct a list of the hosts which will run NIS
servers. aymen-laptop.pfe.lan is in the list of NIS server hosts. Please continue to add
the names for the other hosts, one per line. When you are done with the
list, type a <control D>.
next host to add: aymen-laptop.pfe.lan
next host to add: machine1
next host to add: machine2
next host to add: machine3
next host to add:
The current list of NIS servers looks like this:
aymen-laptop.pfe.lan
machine1
machine2
machine3
Is this correct? [y/n: y] y
We need a few minutes to build the databases...
Building /var/yp/pfe.lan/ypservers...
Running /var/yp/Makefile...
make[1]: entrant dans le répertoire « /var/yp/pfe.lan »
Updating passwd.byname...
Updating passwd.byuid...
Updating group.byname...
Updating group.bygid...
Updating hosts.byname...
Updating hosts.byaddr...
Updating rpc.byname...
Updating rpc.bynumber...
Updating services.byname...
Updating services.byservicename...
Updating netid.byname...
Updating protocols.bynumber...
Updating protocols.byname...
Updating netgroup...
Updating netgroup.byhost...
Updating netgroup.byuser...
Updating shadow.byname...
make[1]: quittant le répertoire « /var/yp/pfe.lan »
aymen-laptop.pfe.lan has been set up as a NIS master server.
Now you can run ypinit -s aymen-laptop.pfe.lan on all slave server.
Dernière modification par slasher-fun (Le 08/06/2010, à 11:59)
Hors ligne
#2 Le 08/06/2010, à 11:49
- ayme
Re : dailog terminal
aucun réponse :mad::mad::mad::mad::mad::mad::mad:
Dernière modification par ayme (Le 08/06/2010, à 11:49)
Hors ligne
#3 Le 08/06/2010, à 12:49
- twocats
Re : dailog terminal
Ici c'est pas une hotline payante, il n'y a AUCUNE obligation de réponse ! Donc tu te calme, svp...:/
La réponse est 42
Hors ligne
#4 Le 08/06/2010, à 12:58
- credenhill
Re : dailog terminal
hello
tu entres toutes les réponses dans un fichier, y compris le control-d et tu exécutes
/usr/lib/yp/ypinit -m < rep
et dans le fichier rep:
aymen-laptop.pfe.lan
machine1
machine2
machine3
^D
y
Hors ligne
#5 Le 09/06/2010, à 13:49
- ayme
Re : dailog terminal
merci credenhill
Hors ligne
Pages : 1