Updated to incorporate changes in FHS 2.3

This commit is contained in:
binh 2004-02-03 21:42:57 +00:00
parent 54ad82b56d
commit ae10e5fc56
1 changed files with 103 additions and 90 deletions

View File

@ -2,8 +2,10 @@
<title>/etc</title>
<para>This is the nerve center of your system, it contains all system
related configuration files in here or in its sub-directories. For this
reason, it&#39;s a good idea to backup this directory regularly. It will
related configuration files in here or in its sub-directories. A
&#34;configuration file&#34; is defined as a local file used to control
the operation of a program; it must be static and cannot be an executable binary.
For this reason, it&#39;s a good idea to backup this directory regularly. It will
definitely save you a lot of re-configuration later if you re-install or
lose your current installation. Normally, no binaries should be or are
located here.</para>
@ -2150,101 +2152,112 @@ dummy:x:1001:1001:,,,:/home/dummy:/bin/bash
should contain commands to set up aliases, functions, options, key bindings,
etc.</para></listitem></varlistentry></variablelist></para>
<para>Compliance with the FSSTND require that the following directories, or
<para>Compliance with the FSSTND requires that the following directories, or
symbolic links to directories are required in /etc:</para>
<para><screen> /etc -- Host-specific system configuration /etc/opt
Configuration for /opt
<para><screen>
opt Configuration for /opt
X11 Configuration for the X Window system (optional)
sgml Configuration for SGML (optional)
xml Configuration for XML (optional)
The following directories, or symbolic links to directories must be in /etc,
if the corresponding subsystem is installed:
/etc -- Host-specific system configuration /etc/X11 Configuration for the X
Window System (optional) /etc/sgml Configuration for SGML and XML (optional)
The following files, or symbolic links to files, must be in /etc if
the corresponding subsystem is installed:
Systems that use the shadow password suite will have additional
configuration files in /etc (/etc/shadow and others) and programs in
/usr/sbin (useradd, usermod, and others).
csh.login Systemwide initialization file for C shell logins
(optional)
exports NFS filesystem access control list (optional)
fstab Static information about filesystems (optional)
ftpusers FTP daemon user access control list (optional)
gateways File which lists gateways for routed (optional)
gettydefs Speed and terminal settings used by getty (optional)
group User group file (optional)
host.conf Resolver configuration file (optional)
hosts Static information about host names (optional)
hosts.allow Host access file for TCP wrappers (optional)
hosts.deny Host access file for TCP wrappers (optional)
hosts.equiv List of trusted hosts for rlogin, rsh, rcp (optional)
hosts.lpd List of trusted hosts for lpd (optional)
inetd.conf Configuration file for inetd (optional)
inittab Configuration file for init (optional)
issue Pre-login message and identification file (optional)
ld.so.conf List of extra directories to search for shared libraries
(optional)
motd Post-login message of the day file (optional)
mtab Dynamic information about filesystems (optional)
mtab does not fit the static nature of /etc: it is excepted
for historical reasons. On some Linux systems, this may be a
symbolic link to /proc/mounts, in which case this exception is not required.
mtools.conf Configuration file for mtools (optional)
networks Static information about network names (optional)
passwd The password file (optional)
printcap The lpd printer capability database (optional)
profile Systemwide initialization file for sh shell logins (optional)
protocols IP protocol listing (optional)
resolv.conf Resolver configuration file (optional)
rpc RPC protocol listing (optional)
securetty TTY access control for root login (optional)
services Port names for network services (optional)
shells Pathnames of valid login shells (optional)
syslog.conf Configuration file for syslogd (optional)
opt Configuration for /opt
The following files, or symbolic links to files, must be in /etc if the
corresponding subsystem is installed (it is recommended that files be
stored in subdirectories of /etc/ rather than directly in /etc:
csh.login Systemwide initialization file for C shell logins (optional)
exports NFS filesystem access control list (optional)
fstab Static information about filesystems (optional)
ftpusers FTP daemon user access control list (optional)
gateways File which lists gateways for routed (optional)
gettydefs Speed and terminal settings used by getty (optional)
group User group file (optional)
host.conf Resolver configuration file (optional)
hosts Static information about host names (optional)
hosts.allow Host access file for TCP wrappers (optional)
hosts.deny Host access file for TCP wrappers (optional)
hosts.equiv List of trusted hosts for rlogin, rsh, rcp (optional)
hosts.lpd List of trusted hosts for lpd (optional)
inetd.conf Configuration file for inetd (optional)
inittab Configuration file for init (optional)
issue Pre-login message and identification file (optional)
ld.so.conf List of extra directories to search for shared libraries
(optional)
motd Post-login message of the day file (optional)
mtab Dynamic information about filesystems (optional)
mtools.conf Configuration file for mtools (optional)
networks Static information about network names (optional)
passwd The password file (optional)
printcap The lpd printer capability database (optional)
profile Systemwide initialization file for sh shell logins (optional)
protocols IP protocol listing (optional)
resolv.conf Resolver configuration file (optional)
rpc RPC protocol listing (optional)
securetty TTY access control for root login (optional)
services Port names for network services (optional)
shells Pathnames of valid login shells (optional)
syslog.conf Configuration file for syslogd (optional)
mtab does not fit the static nature of /etc: it is excepted for historical
reasons. On some Linux systems, this may be a symbolic link to /proc/mounts,
in which case this exception is not required.
/etc/opt : Configuration files for /opt
Host-specific configuration files for add-on application software packages
must be installed within the directory
/etc/opt/&#60;package&#62;, where &#60;package&#62; is the name of the
subtree in /opt where the static data from that package is stored. No
structure is imposed on the internal arrangement of
/etc/opt/&#60;package&#62;. 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 /etc/opt/&#60;package&#62;.
/etc/X11 : Configuration for the X Window System (optional) /etc/X11 is the
location for all X11 host-specific configuration. This directory is
necessary to allow local control if /usr is mounted read only. The following
files, or symbolic links to files, must be in ` /etc/X11 if the
corresponding subsystem is installed: Xconfig The configuration file for
early versions of XFree86 (optional) XF86Config The configuration file for
XFree86 versions 3 and 4 (optional) Xmodmap Global X11 keyboard modification
file (optional) Subdirectories of /etc/X11 may include those for xdm and for
any other programs (some window managers, for example) that need them.
must be installed within the directory /etc/opt/&60;subdir&62;, where
&60;subdir&62; is the name of the subtree in /opt where the static data
from that package is stored.
No structure is imposed on the internal arrangement of /etc/opt/&60;subdir&62;.
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 /etc/opt/&60;subdir&62;.
The rationale behind this subtree is best explained by refering to the
rationale for /opt.
/etc/X11 : Configuration for the X Window System (optional)
/etc/X11 is the location for all X11 host-specific configuration. This
directory is necessary to allow local control if /usr is mounted read only.
The following files, or symbolic links to files, must be in /etc/X11 if the
corresponding subsystem is installed:
Xconfig The configuration file for early versions of XFree86 (optional)
XF86Config The configuration file for XFree86 versions 3 and 4 (optional)
Xmodmap Global X11 keyboard modification file (optional)
Subdirectories of /etc/X11 may include those for xdm and for any other
programs (some window managers, for example) that need them.
/etc/X11/xdm holds the configuration files for xdm. These are most of the
files previously found in /usr/lib/X11/xdm. Some local variable data for xdm
is stored in /var/lib/xdm. We recommend that window managers with only one
configuration file which is a default .*wmrc file must name it system.*wmrc
(unless there is a widely-accepted alternative name) and not use a
subdirectory. Any window manager subdirectories must be identically named to
the actual window manager binary.
/etc/sgml : Configuration files for SGML
and XML (optional) Generic configuration files defining high-level
parameters of the SGML or XML systems are installed here. Files with names
*.conf indicate generic configuration files. File with names *.cat are the
DTD-specific centralized catalogs, containing references to all other
catalogs needed to use the given DTD. The super catalog file catalog
references all the centralized catalogs.
files previously found in /usr/lib/X11/xdm. Some local variable data for
xdm is stored in /var/lib/xdm.
It is recommended that window managers with only one configuration file
which is a default .*wmrc file must name it system.*wmrc (unless there is
a widely-accepted alternative name) and not use a subdirectory. Any window
manager subdirectories must be identically named to the actual window
manager binary.
/etc/sgml : Configuration files for SGML (optional)
Generic configuration files defining high-level parameters of the SGML
systems are installed here. Files with names *.conf indicate generic
configuration files. File with names *.cat are the DTD-specific centralized
catalogs, containing references to all other catalogs needed to use the
given DTD. The super catalog file catalog references all the centralized
catalogs.
/etc/xml : Configuration files for XML (optional)
Generic configuration files defining high-level parameters of the XML
systems are installed here. Files with names *.conf indicate generic
configuration files. The super catalog file catalog references all the
centralized catalogs.
</screen></para>
</sect1>