inncheck8
Check inn configuration and database files
Usage
inncheck [-afqv]
[{--noperm | --perm}]
[--pedantic]
[{file | file=path ...}]
Overview
inncheck examines various configuration files and databases and verifies things about them. Things verified depend on the file being checked, but generally are things like permissions, ownership, syntax errors in config files, etc.
inncheck does not make changes to any files -- it just reports what it thinks may be wrong, and it is up to the operator to fix the problem
The set of files checked may be restricted by using file or file=path arguments. For example, putting "incoming.conf" causes only the incoming.conf file to be checked. Using "incoming.conf=/tmp/incoming.conf" on the command line will cause inncheck to only verify the incoming.conf file, and it will perform the checks on the /tmp/incoming.conf file instead of the default one. Setting a file path to an empty value like "incoming.conf=" will skip the check for that file (this only makes sense with -a, or no files will be checked at all).
Valid values for file are:
activecontrol.ctlcontrol.ctl.localexpire.ctlincoming.confinn.confinnfeed.confmoderatorsnewsfeedsnntpsend.ctlpasswd.nntpreaders.confstorage.conf
Options
-
-a, --all -
If any file value or file=path pairs (see below) are given, then normally only the files they refer to are checked. Use the
-a(or--all) flag to specify that all files should be checked regardless. In this case the form file=path will be the more useful.
-
-f, --fix -
Use the
-fflag (or--fix) to haveinncheckprint the appropriatechown/chgrp/chmodcommand necessary to fix a problem that it reports. Any other output lines will be prefixed with a hash sign ("#") to make the output be valid input for a shell. Note that the--permflag must be used as well when using this flag.
-
--noperm -
To avoid doing any checking of file permissions or ownership, use the
--nopermoption.
-
--pedantic -
Use the
--pedanticoption to get reports on things that are not necessarily wrong, but may indicate a bad configuration, such as inn.conf missing a key.
-
--perm -
inncheckchecks all files for permission problems. If the--permflag is used, then only the files specified by the file or file=path command line arguments will be checked for problems other than permission problems.
-
-q, --quiet -
Use the
-qoption (or--quiet) to get less output.
-
-v, --verbose -
Use the
-voption (or--verbose) to get more verbose output.
Examples
To have inncheck check all files for syntax and permission problems simply run:
inncheck
It is recommended to run the following command to be aware of all the potential problems inncheck can detect:
inncheck -a --perm --pedantic
To have inncheck check all files for permission problems and to verify the syntax of the active and incoming.conf files, do:
inncheck --perm active incoming.conf
To fix the permissions problems noted in the output of the above command, modify it as follows:
inncheck -f --perm | sh
(Note that it is useless to mention the name of the two files since permission problems are checked on all files.)
To have inncheck check the test newsfeeds file in /var/tmp/newsfeeds.testing, do:
inncheck newsfeeds=/var/tmp/newsfeeds.testing
To have inncheck check all the files as it normally does, but to specify a different location for the newsfeeds file and omit checking of the innfeed.conf file, do:
inncheck -a newsfeeds=/var/tmp/newsfeeds.testing innfeed.conf=
Releases
17 releases since Debian 1.3 (Bo); the text changed 13 times.
--all since Debian 7 (Wheezy);
--fix since Debian 7 (Wheezy);
--noperm since Debian 7 (Wheezy);
--pedantic since Debian 7 (Wheezy);
--perm since Debian 7 (Wheezy);
--quiet since Debian 7 (Wheezy);
--verbose since Debian 7 (Wheezy);
-q since Debian 7 (Wheezy).
-noperm until Debian 6.0 (Squeeze);
-pedantic until Debian 6.0 (Squeeze);
-perm until Debian 6.0 (Squeeze).