Podobne
- Strona startowa
- Farland Dav
- Edwards Eve Kronik rodu Lacey 02 Demony miłoÂści
- (38) Niemirski Arkadiusz Pan Samochodzik i ... Przemytnicy
- J. K. Rowling 4 Harry Potter i Czara Ognia
- Bialolecka Ewa Tkacz Iluzji
- Target Organ Toxicity in Marine and Freshwater Teleosts. Vol. 1
- Brust Steven Yendi (2)
- Petersin Thomas Ogrodnik Szoguna ( 18) (2)
- Vinge Joan D Królowe 02 Królowa Lata Zmiana
- Dav
- zanotowane.pl
- doc.pisz.pl
- pdf.pisz.pl
- mrowkodzik.xlx.pl
Cytat
Do celu tam się wysiada. Lec Stanisław Jerzy (pierw. de Tusch-Letz, 1909-1966)
A bogowie grają w kości i nie pytają wcale czy chcesz przyłączyć się do gry (. . . ) Bogowie kpią sobie z twojego poukładanego życia (. . . ) nie przejmują się zbytnio ani naszymi planami na przyszłość ani oczekiwaniami. Gdzieś we wszechświecie rzucają kości i przypadkiem wypada twoja kolej. I odtąd zwyciężyć lub przegrać - to tylko kwestia szczęścia. Borys Pasternak
Idąc po kurzych jajach nie podskakuj. Przysłowie szkockie
I Herkules nie poradzi przeciwko wielu.
Dialog półinteligentów równa się monologowi ćwierćinteligenta. Stanisław Jerzy Lec (pierw. de Tusch - Letz, 1909-1966)
[ Pobierz całość w formacie PDF ]
.Name each copy /var/yp/group.,in which is the name of the host it came from.2.Concatenate all the group files, including the master server s group file, into a temporarygroup file:cd /var/ypcat group group.hostname1 group.hostname2.> group.temp3.Issue the following command to sort the temporary group file by group name:sort -o /var/yp/group.temp -t: -k1,1 /var/yp/group.tempNIS does not require that the group file be sorted in any particular way.Sorting thegroup file simply makes it easier to find duplicate entries.4.Examine /var/yp/group.temp for duplicate group names.If a group name appearsmore than once, merge the groups that have the same name into one group andremove the duplicate entries.5.Issue the following command to sort the temporary group file by GID:sort -o /var/yp/group.temp -t: -k 3n,3 /var/yp/group.temp6.Examine /var/yp/group.temp for duplicate GIDs.If you find multiple entries with thesame GID, edit the file to change the GIDs so that no two groups have the same GID.7.Move /var/yp/group.temp (the sorted, edited file) to /var/yp/group.This file is used togenerate the group map for your NIS domain.8.Remove the /var/yp/group.files from the master server.22 2496 Ch19 8/30/00 1:23 PM Page 487PLANNING YOUR NIS DOMAIN 487Creating the Master hosts FileNow create the master /etc/hosts file the same way you created the master /var/yp/passwdand /var/yp/group files by following these steps:1.Copy the /etc/hosts file from each host in your NIS domain to the /var/yp directory onthe host that will be the master server.Name each copy /var/yp/hosts., inwhich is the name of the host from which it came.2.Concatenate all the hosts files, including the master server s host file, into a temporaryhosts file, as follows:cd /var/ypcat hosts hosts.hostname1 hosts.hostname2.> hosts.temp3.Issue the following command to sort the temporary hosts file so that duplicate IPaddresses are on adjacent lines:sort -o /var/yp/hosts.temp /var/yp/hosts.temp4.Examine /var/yp/hosts.temp for duplicate IP addresses.If you need to map an IPaddress to multiple host names, include them as aliases in a single entry.5.Issue the following command to sort the temporary hosts file by host name:sort -o /var/yp/hosts.temp -b -k 2,2 /var/yp/hosts.temp6.Examine /var/yp/hosts.temp for duplicate host names.A host name can be mapped tomultiple IP addresses only if the IP addresses belong to different LAN cards on thesame host.If a host name appears in multiple entries that are mapped to IP addresseson different hosts, remove all the entries but one.7.Examine the /var/yp/hosts.temp file for duplicate aliases.No alias should appear inmore than one entry.8.Move /var/yp/hosts.temp (the sorted, edited file) to /var/yp/hosts.This file is used togenerate the host s map for your NIS domain.9.Remove the /var/yp/hosts.files from the master server.Other Source FilesThe following files can also be copied to the /var/yp directory to be used as source filesfor NIS maps, but first make sure that they reflect an up-to-date picture of your system envi-ronment:auto.home or auto_homeauto.master or auto_masterbootparams22 2496 Ch19 8/30/00 1:23 PM Page 488488 CHAPTER 19 NAME SERVICESethersnetgroupnetmasksnetworksprotocolsrpcservicesshadowUnlike other source files, the /etc/mail/aliases file cannot be moved to another directory.This file must reside in the /etc/mail directory.Make sure that the /etc/mail/aliases sourcefile is complete by verifying that it contains all the mail aliases that you want to have avail-able throughout the domain.Preparing the MakefileAfter checking the source files and copying them into the source file directory, you need toconvert those source files into the ndbm format maps that the NIS service uses.This is doneautomatically for you by ypinit.I describe how to set up ypinit in the next section.The ypinit script calls the program make, which uses the makefile located in the /var/ypdirectory.A default makefile is provided for you in this directory.It contains the commandsneeded to transform the source files into the desired ndbm format maps.The function of the makefile is to create the appropriate NIS maps for each of the data-bases listed under all. After passing through makedbm, the data is collected in two files,mapname.dir and mapname.pag.Both files are located in the /var/yp/ direc-tory on the master server.The makefile builds passwd maps from the /PWDIR/passwd, /PWDIR/shadow, and/PWDIR/security/passwd.adjunct files, as appropriate.Setting Up the Master Server with ypinitThe /usr/sbin/ypinit shell script sets up master and slave servers and clients to use NIS.Italso initially runs make to create the maps on the master server.To use ypinit to build a freshset of NIS maps on the master server, follow these steps:1.Become root on the master server and ensure that the name service receives its infor-mation from the /etc files, not from NIS, by typing the following:cp /etc/nsswitch
[ Pobierz całość w formacie PDF ]