Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #208020

Re: How do I trace changes in configuration files?

From Joe <joe@jretrading.com>
Newsgroups linux.debian.user
Subject Re: How do I trace changes in configuration files?
Date 2019-05-01 23:20 +0200
Message-ID <xT4NX-1gt-1@gated-at.bofh.it> (permalink)
References <xSTSx-2Nt-7@gated-at.bofh.it> <xSVKF-3WH-1@gated-at.bofh.it> <xT0AF-6Wi-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 1 May 2019 18:43:47 +0200
Erik Josefsson <erik.hjalmar.josefsson@gmail.com> wrote:

> Den 2019-05-01 kl. 13:29, skrev Dan Purgert:

<snip information>
> 
> 
> Thanks Dan, I'll start with that method and maybe later I'll try
> Jonas' proposal with etckeeper and git.
> 
> But first, in which top level directories could files that change be 
> located?
> 
> There are quite a few to choose from: bin, boot, dev, etc, home, lib, 
> lib64, lost+found, media, mnt, opt, proc, root, run, sbin, srv, sys, 
> tmp, usr and var.
> 
In general, system-wide configurations go in /etc, individual user
configurations are in /home/<user>, either in directories beginning
with a . or as single files beginning with a dot for simple
configurations. If you use a GUI file manager, you may need to
configure it to show hidden files.

There are more complex applications, such as php and gschem, which look
for configuration files in many places. php in particular is tightly
tied to a web server, and may have different configurations for
different virtual web sites, so may have some configurations stored in
the web server's configuration directories. I have experienced the
usual php beginner's fury and frustration at changing a parameter in
about six different php.ini files, and *still* not having the change
work... Yes, most of the time I do remember to restart the web server.

The original configuration files for many applications are often stored
somewhere in /usr/lib, either being copied into /etc during
installation or being referred to in /usr/lib but with additional files
in /etc or /home overriding them if the user has made any changes.
Nothing under /usr should ever be written to other than during
installation, so no modified configuration files *ought* to exist here.

On the whole, /etc and the /home dotfiles should hold all of the
configurations which will interest you. If you are unable to find
something you *know* exists somewhere, then look at the list of
installed files for the application, using one of the apt tools.

It is increasingly common for the Debian packages of an application (I
don't know about other distributions) to use a basic configuration
file (e.g. app.conf) and a directory called something like app.conf.d as
well. The idea is that the basic file is not ever modified, because it
can be replaced during an upgrade and if it has been modified you then
get asked that multiple choice question about what you want to do about
it during the upgrade. User files placed in the app.conf.d directory
will be used to override the basic file, and will never be touched
during upgrades, so your configuration changes will (usually) persist
through an upgrade.

Debian also uses an /etc/default directory, which contains many
miscellaneous system configurations in a relatively user-friendly
format. Some of the more useful grub boot parameters live here.

-- 
Joe

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How do I trace changes in configuration files? Erik Josefsson <erik.hjalmar.josefsson@gmail.com> - 2019-05-01 11:40 +0200
  Re: How do I trace changes in configuration files? Jonas Smedegaard <jonas@jones.dk> - 2019-05-01 13:00 +0200
  Re: How do I trace changes in configuration files? Dan Purgert <dan@djph.net> - 2019-05-01 13:40 +0200
    Re: How do I trace changes in configuration files? Erik Josefsson <erik.hjalmar.josefsson@gmail.com> - 2019-05-01 18:50 +0200
      Re: How do I trace changes in configuration files? Dan Purgert <dan@djph.net> - 2019-05-01 19:30 +0200
      Re: How do I trace changes in configuration files? Joe <joe@jretrading.com> - 2019-05-01 23:20 +0200
        Re: How do I trace changes in configuration files? Jude DaShiell <jdashiel@panix.com> - 2019-05-02 00:10 +0200
      Re: How do I trace changes in configuration files? David Wright <deblis@lionunicorn.co.uk> - 2019-05-02 05:30 +0200
        Re: How do I trace changes in configuration files? Dan Purgert <dan@djph.net> - 2019-05-02 13:10 +0200
        Re: How do I trace changes in configuration files? Lee <ler762@gmail.com> - 2019-05-02 18:20 +0200
          Re: How do I trace changes in configuration files? David Wright <deblis@lionunicorn.co.uk> - 2019-05-02 22:20 +0200
            Re: How do I trace changes in configuration files? Lee <ler762@gmail.com> - 2019-05-02 23:00 +0200
  Re: How do I trace changes in configuration files? Andy Smith <andy@strugglers.net> - 2019-05-02 12:10 +0200

csiph-web