3 inncheck \- check inn configuration and database files.
25 .B "file=value | file"
29 examines various configuration files and databases and verifies things
30 about them. Things verified depend on the file being checked, but generally
31 are things like permissions, ownership, syntax errors in config files, etc.
34 does not make changes to any files \(em it just reports what it
35 thinks may be wrong, and it is up to the operator to fix the problem.
37 The set of files checked may be restricted by using \fBfile\fP or
38 \fBfile=value\fP arguments. For example, putting \fBincoming.conf\fP causes
41 file to be checked. Using \fBincoming.conf=/tmp/incoming.conf\fP on the
42 command line will cause
44 to only verify the incoming.conf file, and it will perform the
46 /tmp/incoming.conf file instead of the default one.
70 If any ``\fBfile\fP'' value or ``\fBfile=value\fP'' pairs (see below) are
71 given, then normally only the files they refer to are checked. Use
72 the ``\fB\-a\fP'' flag to specify that
74 files should be checked regardless. In this case the form \fBfile=value\fP
75 will be the more useful.
78 Use the ``\fB\-v\fP'' option to get more verbose output.
81 Use the ``\fB\-pedantic\fP'' option to get reports on things that are not
82 necessarily wrong, but may indicate a bad configuration \(em such as
83 \fIinn.conf\fP missing a key.
86 Use the ``\fB\-f\fP'' flag to have inncheck print the appropriate
87 chown/chgrp/chmod command necessary to fix a problem that it reports. Any
88 other output lines will be prefixed with a ``#'' character to make the
89 output be valid input for a shell. Note that the ``\fB\-perm\fP'' flag
90 must be used as well when using this flag.
93 Inncheck checks all files for permission problems.
94 If the ``\fB\-perm\fP'' flag is used, then
96 the files specified by the \fBfile\fP or \fBfile=value\fP command line
97 arguments will be checked for problems other than permission problems.
100 To avoid doing any checking of file permissions or ownership, use
101 the ``\fB-noperm\fP'' option.
106 check all files for syntax and permission problems simply:
116 check all files for permission problems and to verify the syntax of the
117 active and incoming.conf files do:
121 inncheck -perm active incoming.conf
125 To fix the permissions problems noted in the output of the above
126 command, modify it as follow:
130 inncheck -f -perm | sh
136 check the test newsfeeds file in /var/tmp/newsfeeds.testing, do:
140 inncheck newsfeeds=/var/tmp/newsfeeds.testing
146 check all the files as it normally does, but to specify a different
147 location for the newsfeeds file, so:
151 inncheck -a newsfeeds=/var/tmp/newsfeeds.testing
155 If the ``\fB-f\fP'' and ``\fB-perm\fP'' options are used together, along with
156 ``\fB\-a\fP'' or some ``\fBfile\fP'' or ``\fBfile=value\fP'' arguments that
157 refer to a file with a syntax problem, then the output will no longer be
158 valid input for a shell.
160 Written by Brendan Kehoe <brendan@cygnus.com> and
161 Rich Salz <rsalz@uunet.uu.net>
163 This is revision \\$3, dated \\$4.
165 .R$ $Id: inncheck.8 5909 2002-12-03 05:17:18Z vinocur $