-
Notifications
You must be signed in to change notification settings - Fork 4
/
root-filesystem.xml
1778 lines (1466 loc) · 56.1 KB
/
root-filesystem.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<chapter id='theRootFilesystem'><title>The Root Filesystem</title>
<section id='purpose2'>
<title>Purpose</title>
<para>The contents of the root filesystem must be adequate to boot,
restore, recover, and/or repair the system.</para>
<itemizedlist spacing="normal" mark="bullet">
<listitem>
<para>To boot a system, enough software and data must be present on the root partition
to mount other filesystems. This includes utilities, configuration,
boot loader information, and other essential start-up data.
<filename>/usr</filename>, <filename>/opt</filename>, and
<filename>/var</filename> are designed such that they may be located
on other partitions or filesystems.</para>
</listitem>
<listitem>
<para>To enable recovery and/or repair of a system, those utilities
needed by an experienced maintainer to diagnose and reconstruct a
damaged system must be present on the root filesystem.</para>
</listitem>
<listitem>
<para>To restore a system, those utilities needed to restore from
system backups (on floppy, tape, etc.) must be present on the root
filesystem.</para>
</listitem>
</itemizedlist>
<tip><title>Rationale</title>
<para>The minimum requirements for the root filesystem should be as
small as reasonably possible, but no smaller. While many users may
not want the extra complexity of a partitioned system, the option to
keep the root small should be preserved for several reasons:</para>
<itemizedlist>
<listitem>
<para>It is occasionally mounted from very small media.</para>
</listitem>
<listitem>
<para>The root filesystem contains many system-specific configuration
files. Possible examples include a kernel that is specific to the
system, a specific hostname, etc. This means that the root filesystem
isn't always shareable between networked systems. Keeping it small on
servers in networked systems minimizes the amount of lost space for
areas of unshareable files. It also allows workstations with smaller
local hard drives.</para>
</listitem>
<listitem>
<para>While you may have the root filesystem on a large partition, and
may be able to fill it to your heart's content, there will be people
with smaller partitions. If you have more files installed, you may
find incompatibilities with other systems using root filesystems on
smaller partitions. If you are a developer then you may be turning
your assumption into a problem for a large number of users.</para>
</listitem>
<listitem>
<para>Disk errors that corrupt data on the root filesystem are a
greater problem than errors on any other partition. A small root
filesystem is less prone to corruption as the result of a system
crash.</para>
</listitem>
</itemizedlist>
<para>These considerations must be balanced against the need for a
minimally useful operating environment, for the sake of the boot
process as well as in failure recovery situations.</para>
</tip>
<para>Applications must never create or require special files or
subdirectories in the root directory. Other locations in the FHS
hierarchy provide more than enough flexibility for any package.</para>
<tip><title>Rationale</title>
<para>There are several reasons why creating a new subdirectory of
the root filesystem is prohibited:</para>
<itemizedlist spacing="normal" mark="bullet">
<listitem>
<para>It demands space on a root partition which the system
administrator may want kept small and simple for either performance or
security reasons.</para>
</listitem>
<listitem>
<para>It evades whatever discipline the system administrator may have
set up for distributing standard file hierarchies across mountable
volumes.</para>
</listitem>
</itemizedlist>
<para>Distributions should not create new directories in the root
hierarchy without extremely careful consideration of the consequences
including for application portability.</para>
</tip>
</section>
<section id='requirements'><title>Requirements</title>
<para>The following directories, or symbolic links to directories, are
required in <filename>/</filename>.</para>
<informaltable frame='none'>
<tgroup cols='2' align='left'>
<thead>
<row>
<entry>Directory</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><filename>bin</filename></entry>
<entry>Essential command binaries</entry>
</row>
<row>
<entry><filename>boot</filename></entry>
<entry>Static files of the boot loader</entry>
</row>
<row>
<entry><filename>dev</filename></entry>
<entry>Device files</entry>
</row>
<row>
<entry><filename>etc</filename></entry>
<entry>Host-specific system configuration</entry>
</row>
<row>
<entry><filename>lib</filename></entry>
<entry>Essential shared libraries and kernel modules</entry>
</row>
<row>
<entry><filename>media</filename></entry>
<entry>Mount point for removable media</entry>
</row>
<row>
<entry><filename>mnt</filename></entry>
<entry>Mount point for mounting a filesystem temporarily</entry>
</row>
<row>
<entry><filename>opt</filename></entry>
<entry>Add-on application software packages</entry>
</row>
<row>
<entry><filename>run</filename></entry>
<entry>Data relevant to running processes</entry>
</row>
<row>
<entry><filename>sbin</filename></entry>
<entry>Essential system binaries</entry>
</row>
<row>
<entry><filename>srv</filename></entry>
<entry>Data for services provided by this system</entry>
</row>
<row>
<entry><filename>tmp</filename></entry>
<entry>Temporary files</entry>
</row>
<row>
<entry><filename>usr</filename></entry>
<entry>Secondary hierarchy</entry>
</row>
<row>
<entry><filename>var</filename></entry>
<entry>Variable data</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>Each directory listed above is specified in detail in separate
subsections below. <filename>/usr</filename> and
<filename>/var</filename> each has a complete section in this
document due to the complexity of those directories.</para>
</section>
<section id='specificOptions'><title>Specific Options</title>
<para>The following directories, or symbolic links to directories,
must be in <filename>/</filename>, if the corresponding subsystem is
installed:</para>
<informaltable frame='none'>
<tgroup cols='2' align='left'>
<thead>
<row>
<entry>Directory</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><filename>home</filename></entry>
<entry>User home directories (optional)</entry>
</row>
<row>
<entry><filename>lib<replaceable><qual></replaceable></filename></entry>
<entry>Alternate format essential shared libraries (optional)</entry>
</row>
<row>
<entry><filename>root</filename></entry>
<entry>Home directory for the root user (optional)</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>Each directory listed above is specified in detail in separate
subsections below.</para>
</section>
<section id='binEssentialUserCommandBinaries'>
<title>/bin : Essential user command binaries (for use by all users)</title>
<section id='purpose3'><title>Purpose</title>
<para><filename>/bin</filename> contains commands that may be used by
both the system administrator and by users, but which are required
when no other filesystems are mounted (e.g. in single user mode). It
may also contain commands which are used indirectly by scripts.
<footnote>
<para>
Command binaries that are not essential enough to place into
<filename>/bin</filename> must be placed in
<filename>/usr/bin</filename>, instead. Items that are required only
by non-root users (the X Window System, <filename>chsh</filename>,
etc.) are generally not essential enough to be placed into the root
partition.
</para>
</footnote>
</para>
</section>
<section id='requirements2'><title>Requirements</title>
<para>There must be no subdirectories in <filename>/bin</filename>.</para>
<para>The following commands, or symbolic links to commands, are
required in <filename>/bin</filename>:</para>
<informaltable pgwide='0' frame='none'>
<tgroup cols='2' align='left'>
<thead>
<row><entry>Command</entry><entry>Description</entry></row>
</thead>
<tbody>
<row>
<entry><command>cat</command></entry>
<entry>Utility to concatenate files to standard output</entry>
</row>
<row>
<entry><command>chgrp</command></entry>
<entry>Utility to change file group ownership</entry>
</row>
<row>
<entry><command>chmod</command></entry>
<entry>Utility to change file access permissions</entry>
</row>
<row>
<entry><command>chown</command></entry>
<entry>Utility to change file owner and group</entry>
</row>
<row>
<entry><command>cp</command></entry>
<entry>Utility to copy files and directories</entry>
</row>
<row>
<entry><command>date</command></entry>
<entry>Utility to print or set the system data and time</entry>
</row>
<row>
<entry><command>dd</command></entry>
<entry>Utility to convert and copy a file</entry>
</row>
<row>
<entry><command>df</command></entry>
<entry>Utility to report filesystem disk space usage</entry>
</row>
<row>
<entry><command>dmesg</command></entry>
<entry>Utility to print or control the kernel message buffer</entry>
</row>
<row>
<entry><command>echo</command></entry>
<entry>Utility to display a line of text</entry>
</row>
<row>
<entry><command>false</command></entry>
<entry>Utility to do nothing, unsuccessfully</entry>
</row>
<row>
<entry><command>hostname</command></entry>
<entry>Utility to show or set the system's host name</entry>
</row>
<row>
<entry><command>kill</command></entry>
<entry>Utility to send signals to processes</entry>
</row>
<row>
<entry><command>ln</command></entry>
<entry>Utility to make links between files</entry>
</row>
<row>
<entry><command>login</command></entry>
<entry>Utility to begin a session on the system</entry>
</row>
<row>
<entry><command>ls</command></entry>
<entry>Utility to list directory contents</entry>
</row>
<row>
<entry><command>mkdir</command></entry>
<entry>Utility to make directories</entry>
</row>
<row>
<entry><command>mknod</command></entry>
<entry>Utility to make block or character special files</entry>
</row>
<row>
<entry><command>more</command></entry>
<entry>Utility to page through text</entry>
</row>
<row>
<entry><command>mount</command></entry>
<entry>Utility to mount a filesystem</entry>
</row>
<row>
<entry><command>mv</command></entry>
<entry>Utility to move/rename files</entry>
</row>
<row>
<entry><command>ps</command></entry>
<entry>Utility to report process status</entry>
</row>
<row>
<entry><command>pwd</command></entry>
<entry>Utility to print name of current working directory</entry>
</row>
<row>
<entry><command>rm</command></entry>
<entry>Utility to remove files or directories</entry>
</row>
<row>
<entry><command>rmdir</command></entry>
<entry>Utility to remove empty directories</entry>
</row>
<row>
<entry><command>sed</command></entry>
<entry>The `sed' stream editor</entry>
</row>
<row>
<entry><command>sh</command></entry>
<entry>POSIX compatible command shell</entry>
</row>
<row>
<entry><command>stty</command></entry>
<entry>Utility to change and print terminal line settings</entry>
</row>
<row>
<entry><command>su</command></entry>
<entry>Utility to change user ID</entry>
</row>
<row>
<entry><command>sync</command></entry>
<entry>Utility to flush filesystem buffers</entry>
</row>
<row>
<entry><command>true</command></entry>
<entry>Utility to do nothing, successfully</entry>
</row>
<row>
<entry><command>umount</command></entry>
<entry>Utility to unmount file systems</entry>
</row>
<row>
<entry><command>uname</command></entry>
<entry>Utility to print system information</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>If <command>/bin/sh</command> is not the POSIX compatible shell
command itself, it must be a hard or symbolic link to the real shell
command.</para>
<para>The <command>[</command> and <command>test</command>
commands must be placed together in either <filename>/bin</filename>
or <filename>/usr/bin</filename>.</para>
<tip><title>Rationale</title>
<para>Various shells behave differently when called as
<command>sh</command>, so as to preserve POSIX compatibility while
allowing changes or extensions to POSIX when desired.</para>
<para>The requirement for the <command>[</command> and
<command>test</command> commands to be included as binaries (even if
implemented internally by the shell) is shared with the POSIX.1-2008
standard.</para>
</tip>
</section>
<section id='specificOptions2'><title>Specific Options</title>
<para>The following programs, or symbolic links to programs, must be
in <filename>/bin</filename> if the corresponding subsystem is
installed:</para>
<informaltable pgwide='0' frame='none'>
<tgroup cols='2' align='left'>
<thead>
<row><entry>Command</entry><entry>Description</entry></row>
</thead>
<tbody>
<row>
<entry><command>csh</command></entry>
<entry>The C shell (optional)</entry>
</row>
<row>
<entry><command>ed</command></entry>
<entry>The `ed' editor (optional)</entry>
</row>
<row>
<entry><command>tar</command></entry>
<entry>The tar archiving utility (optional)</entry>
</row>
<row>
<entry><command>cpio</command></entry>
<entry>The cpio archiving utility (optional)</entry>
</row>
<row>
<entry><command>gzip</command></entry>
<entry>The GNU compression utility (optional)</entry>
</row>
<row>
<entry><command>gunzip</command></entry>
<entry>The GNU uncompression utility (optional)</entry>
</row>
<row>
<entry><command>zcat</command></entry>
<entry>The GNU uncompression utility (optional)</entry>
</row>
<row>
<entry><command>netstat</command></entry>
<entry>The network statistics utility (optional)</entry>
</row>
<row>
<entry><command>ping</command></entry>
<entry>The ICMP network test utility (optional)</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para><command>/bin/csh</command> may be a symbolic link to
<command>/bin/tcsh</command> or
<command>/usr/bin/tcsh</command>.</para>
<tip><title>Rationale</title>
<para>The <command>tar</command>, <command>gzip </command>
and <command>cpio</command>
commands have been added to make restoration of a
system possible (provided that <filename>/</filename> is intact).</para>
<para>Conversely, if no restoration from the root partition is ever
expected, then these binaries might be omitted (e.g., a ROM chip root,
mounting <filename>/usr</filename> through NFS). If restoration of a
system is planned through the network, then <command>ftp</command>
or <command>tftp</command> (along with everything necessary to get
an ftp connection) must be available on the root partition.</para>
</tip>
</section>
</section>
<section id='bootStaticFilesOfTheBootLoader'>
<title>/boot : Static files of the boot loader</title>
<section id='purpose4'><title>Purpose</title>
<para>This directory contains everything required for the boot process
except configuration files not needed at boot time and the map
installer. Thus <filename>/boot</filename> stores data that is used
before the kernel begins executing user-mode programs. This may
include saved master boot sectors and sector map files.</para>
<para> Programs necessary to arrange for the boot loader to be able to
boot a file must be placed in <filename>/sbin</filename>.
Configuration files for boot loaders that are not required at boot
time must be placed in <filename>/etc</filename>.</para>
</section>
<section id='specificOptions3'><title>Specific Options</title>
<para>The operating system kernel must be located in either
<filename>/</filename> or <filename>/boot</filename>.</para>
<para>Certain architectures may have other requirements for
<filename>/boot</filename> related to limitations or expectations
specific to that architecture. These requirements are not enumerated
here; distributions are allowed to add requirements as needed to
enable system startup on these architectures.</para>
</section>
</section>
<section id='devDeviceFiles'><title>/dev : Device files</title>
<section id='purpose5'><title>Purpose</title>
<para>The <filename>/dev</filename> directory is the location of
special or device files.</para>
</section>
<section id='specificOptions4'><title>Specific Options</title>
<para>If it is possible that devices in <filename>/dev</filename> will
need to be manually created, <filename>/dev</filename> must contain a
command named <filename>MAKEDEV</filename>, which can create devices
as needed. It may also contain a <filename>MAKEDEV.local</filename>
for any local devices.</para>
<para>If required, <filename>MAKEDEV</filename> must have provisions
for creating any device that may be found on the system, not just
those that a particular distribution installs.</para>
</section>
</section>
<section id='etcHostspecificSystemConfiguration'>
<title>/etc : Host-specific system configuration</title>
<section id='purpose6'>
<title>Purpose</title>
<para>The <filename>/etc</filename> hierarchy contains configuration
files. A "configuration file" is a local file used to control the
operation of a program; it must be static and cannot be an executable
binary.
<footnote>
<para>
To be clear, <filename>/etc</filename> may contain executable scripts,
such as the command scripts commonly called by
<filename>init</filename> to start and shut down the system and start
daemon processes. "Executable binary" in this context refers to
direct machine code or pseudocode not in a human-readable format, such
as native ELF executables.
</para>
</footnote>
</para>
<para>
It is recommended that files be stored in subdirectories of
<filename>/etc</filename> rather than directly in
<filename>/etc</filename>.
</para>
</section>
<section id='requirements3'><title>Requirements</title>
<para>No binaries may be located under
<filename>/etc</filename>.</para>
<para>The following directories, or symbolic links to directories are
required in <filename>/etc</filename>:</para>
<informaltable frame='none'>
<tgroup cols='2' align='left'>
<thead>
<row>
<entry>Directory</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>opt</entry>
<entry>Configuration for /opt</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
<section id='specificOptions5'><title>Specific Options</title>
<para>The following directories, or symbolic links to directories must
be in <filename>/etc</filename>, if the corresponding subsystem is
installed:</para>
<informaltable frame='none'>
<tgroup cols='2' align='left'>
<thead>
<row>
<entry>Directory</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>X11</entry>
<entry>Configuration for the X Window system (optional)</entry>
</row>
<row>
<entry>sgml</entry>
<entry>Configuration for SGML (optional)</entry>
</row>
<row>
<entry>xml</entry>
<entry>Configuration for XML (optional)</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>The following files, or symbolic links to files, must be in
<filename>/etc</filename> if the corresponding subsystem is
installed:
<footnote>
<para>
Systems that use the shadow password suite will have additional
configuration files in <filename>/etc</filename>
(<filename>/etc/shadow</filename> and others) and programs in
<filename>/usr/sbin</filename> (<command>useradd</command>,
<command>usermod</command>, and others).
</para>
</footnote>
</para>
<informaltable frame='none'>
<tgroup cols='2' align='left'>
<thead>
<row><entry>File</entry><entry>Description</entry></row>
</thead>
<tbody>
<row>
<entry><filename>csh.login</filename></entry>
<entry>Systemwide initialization file for C shell logins (optional)</entry>
</row>
<row>
<entry><filename>exports</filename></entry>
<entry>NFS filesystem access control list (optional)</entry>
</row>
<row>
<entry><filename>fstab</filename></entry>
<entry>Static information about filesystems (optional)</entry>
</row>
<row>
<entry><filename>ftpusers</filename></entry>
<entry>FTP daemon user access control list (optional)</entry>
</row>
<row>
<entry><filename>gateways</filename></entry>
<entry>File which lists gateways for routed (optional)</entry>
</row>
<row>
<entry><filename>gettydefs</filename></entry>
<entry>Speed and terminal settings used by getty (optional)</entry>
</row>
<row>
<entry><filename>group</filename></entry>
<entry>User group file (optional)</entry>
</row>
<row>
<entry><filename>host.conf</filename></entry>
<entry>Resolver configuration file (optional)</entry>
</row>
<row>
<entry><filename>hosts</filename></entry>
<entry>Static information about host names (optional)</entry>
</row>
<row>
<entry><filename>hosts.allow</filename></entry>
<entry>Host access file for TCP wrappers (optional)</entry>
</row>
<row>
<entry><filename>hosts.deny</filename></entry>
<entry>Host access file for TCP wrappers (optional)</entry>
</row>
<row>
<entry><filename>hosts.equiv</filename></entry>
<entry>List of trusted hosts for rlogin, rsh, rcp (optional)</entry>
</row>
<row>
<entry><filename>hosts.lpd</filename></entry>
<entry>List of trusted hosts for lpd (optional)</entry>
</row>
<row>
<entry><filename>inetd.conf</filename></entry>
<entry>Configuration file for inetd (optional)</entry>
</row>
<row>
<entry><filename>inittab</filename></entry>
<entry>Configuration file for init (optional)</entry>
</row>
<row>
<entry><filename>issue</filename></entry>
<entry>Pre-login message and identification file (optional)</entry>
</row>
<row>
<entry><filename>ld.so.conf</filename></entry>
<entry>List of extra directories to search for shared libraries (optional)</entry>
</row>
<row>
<entry><filename>motd</filename></entry>
<entry>Post-login message of the day file (optional)</entry>
</row>
<row>
<entry><filename>mtab</filename></entry>
<entry>Dynamic information about filesystems (optional)</entry>
</row>
<row>
<entry><filename>mtools.conf</filename></entry>
<entry>Configuration file for mtools (optional)</entry>
</row>
<row>
<entry><filename>networks</filename></entry>
<entry>Static information about network names (optional)</entry>
</row>
<row>
<entry><filename>passwd</filename></entry>
<entry>The password file (optional)</entry>
</row>
<row>
<entry><filename>printcap</filename></entry>
<entry>The lpd printer capability database (optional)</entry>
</row>
<row>
<entry><filename>profile</filename></entry>
<entry>Systemwide initialization file for sh shell logins (optional)</entry>
</row>
<row>
<entry><filename>protocols</filename></entry>
<entry>IP protocol listing (optional)</entry>
</row>
<row>
<entry><filename>resolv.conf</filename></entry>
<entry>Resolver configuration file (optional)</entry>
</row>
<row>
<entry><filename>rpc</filename></entry>
<entry>RPC protocol listing (optional)</entry>
</row>
<row>
<entry><filename>securetty</filename></entry>
<entry>TTY access control for root login (optional)</entry>
</row>
<row>
<entry><filename>services</filename></entry>
<entry>Port names for network services (optional)</entry>
</row>
<row>
<entry><filename>shells</filename></entry>
<entry>Pathnames of valid login shells (optional)</entry>
</row>
<row>
<entry><filename>syslog.conf</filename></entry>
<entry>Configuration file for syslogd (optional)</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para><filename>mtab</filename> does not fit the static nature of
<filename>/etc</filename>: it is excepted for historical reasons.
<footnote>
<para>
On some Linux systems, this may be a symbolic link to
<filename>/proc/mounts</filename>, in which case this exception is not
required.
</para>
</footnote>
</para>
</section>
<section id='etcoptConfigurationFilesForOpt'>
<title>/etc/opt : Configuration files for /opt</title>
<section id='purpose7'><title>Purpose</title>
<para>Host-specific configuration files for add-on application
software packages must be installed within the directory
<filename>/etc/opt/<subdir></filename>, where
<filename><subdir></filename> is the name of the subtree in
<filename>/opt</filename> where the static data from that package is
stored.</para>
</section>
<section id='requirements4'><title>Requirements</title>
<para>No structure is imposed on the internal arrangement of
<filename>/etc/opt/<subdir></filename>.</para>
<para>If a configuration file must reside in a different location in
order for the package or system to function properly, it may be placed
in a location other than
<filename>/etc/opt/<subdir></filename>.</para>
<tip><title>Rationale</title>
<para>Refer to the rationale for <filename>/opt</filename>.</para>
</tip>
</section>
</section>
<section id='etcx11ConfigurationForTheXWindowS'>
<title>/etc/X11 : Configuration for the X Window System (optional)</title>
<section id='purpose8'><title>Purpose</title>
<para><emphasis>/etc/X11</emphasis> is the location for all X11
host-specific configuration. This directory is necessary to allow
local control if <emphasis>/usr</emphasis> is mounted read
only.</para>
</section>
<section id='specificOptions6'><title>Specific Options</title>
<para>The following files, or symbolic links to files, must be in
<filename>/etc/X11</filename> if the corresponding subsystem is
installed:</para>
<informaltable frame='none'>
<tgroup cols='2' align='left'>
<colspec colname='c1'/>
<colspec colname='c2'/>
<thead>
<row>
<entry>File</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><filename>xorg.conf</filename></entry>
<entry>The configuration file for X.org versions 7 and later (optional)</entry>
</row>
<row>
<entry><filename>Xmodmap</filename></entry>
<entry>Global X11 keyboard modification file (optional)</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>Subdirectories of <filename>/etc/X11</filename> may include
those for <filename>xdm</filename> and for any other programs (some
window managers, for example) that need them.
<footnote>
<para>
<filename>/etc/X11/xdm</filename> holds the configuration files for
<filename>xdm</filename>. These are most of the files previously
found in <filename>/usr/lib/X11/xdm</filename>. Some local variable
data for <filename>xdm</filename> is stored in
<filename>/var/lib/xdm</filename>.
</para>
</footnote>
</para>
</section>
</section>
<section id='etcsgmlConfigurationFilesForSgmlAn'>
<title>/etc/sgml : Configuration files for SGML (optional)</title>
<section id='purpose9'><title>Purpose</title>
<para>Generic configuration files defining high-level parameters of
the SGML systems are installed here. Files with names
<filename>*.conf</filename> indicate generic configuration files.
File with names <filename>*.cat</filename> are the DTD-specific
centralized catalogs, containing references to all other catalogs
needed to use the given DTD. The super catalog file
<filename>catalog</filename> references all the centralized
catalogs.</para>
</section>
</section>
<section>
<title>/etc/xml : Configuration files for XML (optional)</title>
<section><title>Purpose</title>
<para>Generic configuration files defining high-level parameters of
the XML systems are installed here. Files with names
<filename>*.conf</filename> indicate generic configuration files.
The super catalog file
<filename>catalog</filename> references all the centralized
catalogs.</para>
</section>
</section>
</section>
<section id='homeUserHomeDirectories'>
<title>/home : User home directories (optional)</title>
<section id='purpose10'><title>Purpose</title>
<para><filename>/home</filename> is a fairly standard concept, but it
is clearly a site-specific filesystem.
<footnote>
<para>
Different people prefer to place user accounts in a variety of places.
This section describes only a suggested placement for user home
directories; nevertheless we recommend that all FHS-compliant
distributions use this as the default location for user home
directories. Non-login accounts created for administrative
purposes often have their home directories elsewhere.</para>
<para>On smaller systems, each user's home directory is typically implemented
as a subdirectory directly under <filename>/home</filename>, for example
<filename>/home/smith</filename>, <filename>/home/torvalds</filename>,
<filename>/home/operator</filename>, etc. On large systems
(especially when the <filename>/home</filename> directories are shared
amongst many hosts using NFS) it is useful to subdivide user home
directories. Subdivision may be accomplished by using subdirectories
such as <filename>/home/staff</filename>,
<filename>/home/guests</filename>,
<filename>/home/students</filename>, etc.
</para>
</footnote>