
autofs
Common Tasks
245
automount: files nis
and the NIS
auto.master
map file contains the following:
/home auto.home
Also assume the NIS
auto.home
map contains the following:
beth fileserver.example.com:/export/home/beth
joe fileserver.example.com:/export/home/joe
* fileserver.example.com:/export/home/&
and the file map
/etc/auto.home
does not exist.
For the above example, lets assume that the client system needs to mount home directories from a
different server. In this case, the client will need to use the following
/etc/auto.master
map:
/home /etc/auto.home2
+auto.master
And the
/etc/auto.home2
map contains the entry:
* labserver.example.com:/export/home/&
Because only the first occurrence of a mount point is processed,
/home
will contain the contents of
/
etc/auto.home2
instead of the NIS
auto.home
map.
Alternatively, if you just want to augment the site-wide
auto.home
map with a few entries, create a
/etc/auto.home
file map, and in it put your new entries and at the
end, include the NIS auto.home map. Then the
/etc/auto.home
file map might look similar to:
mydir someserver:/export/mydir
+auto.home
Given the NIS
auto.home
map listed above, an
ls
of
/home
would now give:
$ ls /home
beth joe mydir
This last example works as expected because
autofs
knows not to include the contents of a file map
of the same name as the one it is reading and so moves on to the next map source in the
nsswitch
configuration.
19.3.3.2. Using LDAP to Store Automounter Maps
LDAP client libraries must be installed on all systems which are to retrieve automounter maps from
LDAP. On RHEL 5, the
openldap
package should be installed automatically as a dependency of
the
automounter
. To configure LDAP access, modify
/etc/openldap/ldap.conf
. Ensure that
BASE and URI are set appropriately for your site. Please also ensure that the schema is set in the
configuration.
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...