.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "INNCHECK 8" .TH INNCHECK 8 "2015-09-12" "INN 2.6.4" "InterNetNews Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" inncheck \- Check INN configuration and database files .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBinncheck\fR [\fB\-afqv\fR] [\fB\-\-noperm\fR | \fB\-\-perm\fR] [\fB\-\-pedantic\fR] [\fIfile\fR | \fIfile\fR\fB=\fR\fIpath\fR ...] .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fBinncheck\fR 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. .PP \&\fBinncheck\fR 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 .PP The set of files checked may be restricted by using \fIfile\fR or \&\fIfile\fR\fB=\fR\fIpath\fR arguments. For example, putting \f(CW\*(C`incoming.conf\*(C'\fR causes only the \fIincoming.conf\fR file to be checked. Using \&\f(CW\*(C`incoming.conf=/tmp/incoming.conf\*(C'\fR on the command line will cause \&\fBinncheck\fR to only verify the \fIincoming.conf\fR file, and it will perform the checks on the \fI/tmp/incoming.conf\fR file instead of the default one. Setting a file path to an empty value like \f(CW\*(C`incoming.conf=\*(C'\fR will skip the check for that file (this only makes sense with \fB\-a\fR, or no files will be checked at all). .PP Valid values for \fIfile\fR are: .PP .Vb 10 \& active \& control.ctl \& control.ctl.local \& expire.ctl \& incoming.conf \& inn.conf \& innfeed.conf \& moderators \& newsfeeds \& nntpsend.ctl \& passwd.nntp \& readers.conf \& storage.conf .Ve .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-a\fR, \fB\-\-all\fR" 4 .IX Item "-a, --all" If any \fIfile\fR value or \fIfile\fR\fB=\fR\fIpath\fR pairs (see below) are given, then normally only the files they refer to are checked. Use the \fB\-a\fR (or \&\fB\-\-all\fR) flag to specify that \fIall\fR files should be checked regardless. In this case the form \fIfile\fR\fB=\fR\fIpath\fR will be the more useful. .IP "\fB\-f\fR, \fB\-\-fix\fR" 4 .IX Item "-f, --fix" Use the \fB\-f\fR flag (or \fB\-\-fix\fR) to have \fBinncheck\fR print the appropriate \&\fBchown\fR/\fBchgrp\fR/\fBchmod\fR command necessary to fix a problem that it reports. Any other output lines will be prefixed with a hash sign (\f(CW\*(C`#\*(C'\fR) to make the output be valid input for a shell. Note that the \fB\-\-perm\fR flag must be used as well when using this flag. .IP "\fB\-\-noperm\fR" 4 .IX Item "--noperm" To avoid doing any checking of file permissions or ownership, use the \&\fB\-\-noperm\fR option. .IP "\fB\-\-pedantic\fR" 4 .IX Item "--pedantic" Use the \fB\-\-pedantic\fR option to get reports on things that are not necessarily wrong, but may indicate a bad configuration, such as \fIinn.conf\fR missing a key. .IP "\fB\-\-perm\fR" 4 .IX Item "--perm" \&\fBinncheck\fR checks all files for permission problems. If the \fB\-\-perm\fR flag is used, then \fIonly\fR the files specified by the \fIfile\fR or \&\fIfile\fR\fB=\fR\fIpath\fR command line arguments will be checked for problems other than permission problems. .IP "\fB\-q\fR, \fB\-\-quiet\fR" 4 .IX Item "-q, --quiet" Use the \fB\-q\fR option (or \fB\-\-quiet\fR) to get less output. .IP "\fB\-v\fR, \fB\-\-verbose\fR" 4 .IX Item "-v, --verbose" Use the \fB\-v\fR option (or \fB\-\-verbose\fR) to get more verbose output. .SH "EXAMPLES" .IX Header "EXAMPLES" To have \fBinncheck\fR check all files for syntax and permission problems simply run: .PP .Vb 1 \& inncheck .Ve .PP It is recommended to run the following command to be aware of all the potential problems \fBinncheck\fR can detect: .PP .Vb 1 \& inncheck \-a \-\-perm \-\-pedantic .Ve .PP To have \fBinncheck\fR check all files for permission problems and to verify the syntax of the \fIactive\fR and \fIincoming.conf\fR files, do: .PP .Vb 1 \& inncheck \-\-perm active incoming.conf .Ve .PP To fix the permissions problems noted in the output of the above command, modify it as follows: .PP .Vb 1 \& inncheck \-f \-\-perm | sh .Ve .PP (Note that it is useless to mention the name of the two files since permission problems are checked on all files.) .PP To have \fBinncheck\fR check the test \fInewsfeeds\fR file in \&\fI/var/tmp/newsfeeds.testing\fR, do: .PP .Vb 1 \& inncheck newsfeeds=/var/tmp/newsfeeds.testing .Ve .PP To have \fBinncheck\fR check all the files as it normally does, but to specify a different location for the \fInewsfeeds\fR file and omit checking of the \&\fIinnfeed.conf\fR file, do: .PP .Vb 1 \& inncheck \-a newsfeeds=/var/tmp/newsfeeds.testing innfeed.conf= .Ve .SH "BUGS" .IX Header "BUGS" If the \fB\-f\fR and \fB\-\-perm\fR options are used together, along with \fB\-a\fR or some \fIfile\fR or \fIfile\fR\fB=\fR\fIpath\fR arguments that refer to a file with a syntax problem, then the output will no longer be valid input for a shell. .PP In most cases, \fBinncheck\fR currently does not correctly understand option values spanning multiple lines. If you get error messages about runaway quotes, you either have to ignore them and check the correctness of the relevant lines yourself, or merge the value into a single line. .SH "HISTORY" .IX Header "HISTORY" Written by Brendan Kehoe and Rich Salz for InterNetNews. Converted to \s-1POD\s0 by Julien Elie. .PP \&\f(CW$Id:\fR inncheck.pod 9428 2012\-06\-15 18:18:45Z iulius $ .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBactive\fR\|(5), \fBcontrol.ctl\fR\|(5), \fBexpire.ctl\fR\|(5), \fBhistory\fR\|(5), \fBincoming.conf\fR\|(5), \&\fBinn.conf\fR\|(5), \fBinnfeed.conf\fR\|(5), \fBmoderators\fR\|(5), \fBnewsfeeds\fR\|(5), \fBnntpsend.ctl\fR\|(5), \&\fBpasswd.nntp\fR\|(5), \fBreaders.conf\fR\|(5), \fBstorage.conf\fR\|(5).