source: vendor/current/docs/manpages/testparm.1

Last change on this file was 989, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.7

File size: 5.0 KB
Line 
1'\" t
2.\" Title: testparm
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5.\" Date: 10/25/2016
6.\" Manual: User Commands
7.\" Source: Samba 4.4
8.\" Language: English
9.\"
10.TH "TESTPARM" "1" "10/25/2016" "Samba 4\&.4" "User Commands"
11.\" -----------------------------------------------------------------
12.\" * Define some portability stuff
13.\" -----------------------------------------------------------------
14.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15.\" http://bugs.debian.org/507673
16.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18.ie \n(.g .ds Aq \(aq
19.el .ds Aq '
20.\" -----------------------------------------------------------------
21.\" * set default formatting
22.\" -----------------------------------------------------------------
23.\" disable hyphenation
24.nh
25.\" disable justification (adjust text to left margin only)
26.ad l
27.\" -----------------------------------------------------------------
28.\" * MAIN CONTENT STARTS HERE *
29.\" -----------------------------------------------------------------
30.SH "NAME"
31testparm \- check an smb\&.conf configuration file for internal correctness
32.SH "SYNOPSIS"
33.HP \w'\ 'u
34testparm [\-s|\-\-suppress\-prompt] [\-\-help] [\-v|\-\-verbose] {config\ filename} [hostname\ hostIP]
35.SH "DESCRIPTION"
36.PP
37This tool is part of the
38\fBsamba\fR(7)
39suite\&.
40.PP
41testparm
42is a very simple test program to check an
43\fBsmbd\fR(8)
44configuration file for internal correctness\&. If this program reports no problems, you can use the configuration file with confidence that
45smbd
46will successfully load the configuration file\&.
47.PP
48Note that this is
49\fINOT\fR
50a guarantee that the services specified in the configuration file will be available or will operate as expected\&.
51.PP
52If the optional host name and host IP address are specified on the command line, this test program will run through the service entries reporting whether the specified host has access to each service\&.
53.PP
54If
55testparm
56finds an error in the
57smb\&.conf
58file it returns an exit code of 1 to the calling program, else it returns an exit code of 0\&. This allows shell scripts to test the output from
59testparm\&.
60.SH "OPTIONS"
61.PP
62\-s|\-\-suppress\-prompt
63.RS 4
64Without this option,
65testparm
66will prompt for a carriage return after printing the service names and before dumping the service definitions\&.
67.RE
68.PP
69\-v|\-\-verbose
70.RS 4
71If this option is specified, testparm will also output all options that were not used in
72\fBsmb.conf\fR(5)
73and are thus set to their defaults\&.
74.RE
75.PP
76\-\-parameter\-name parametername
77.RS 4
78Dumps the named parameter\&. If no section\-name is set the view is limited by default to the global section\&. It is also possible to dump a parametrical option\&. Therefore the option has to be separated by a colon from the parametername\&.
79.RE
80.PP
81\-\-section\-name sectionname
82.RS 4
83Dumps the named section\&.
84.RE
85.PP
86\-\-show\-all\-parameters
87.RS 4
88Show the parameters, type, possible values\&.
89.RE
90.PP
91\-l|\-\-skip\-logic\-checks
92.RS 4
93Skip the global checks\&.
94.RE
95.PP
96configfilename
97.RS 4
98This is the name of the configuration file to check\&. If this parameter is not present then the default
99\fBsmb.conf\fR(5)
100file will be checked\&.
101.RE
102.PP
103hostname
104.RS 4
105If this parameter and the following are specified, then
106testparm
107will examine the
108\fIhosts allow\fR
109and
110\fIhosts deny\fR
111parameters in the
112\fBsmb.conf\fR(5)
113file to determine if the hostname with this IP address would be allowed access to the
114smbd
115server\&. If this parameter is supplied, the hostIP parameter must also be supplied\&.
116.RE
117.PP
118hostIP
119.RS 4
120This is the IP address of the host specified in the previous parameter\&. This address must be supplied if the hostname parameter is supplied\&.
121.RE
122.SH "FILES"
123.PP
124\fBsmb.conf\fR(5)
125.RS 4
126This is usually the name of the configuration file used by
127\fBsmbd\fR(8)\&.
128.RE
129.SH "DIAGNOSTICS"
130.PP
131The program will issue a message saying whether the configuration file loaded OK or not\&. This message may be preceded by errors and warnings if the file did not load\&. If the file was loaded OK, the program then dumps all known service details to stdout\&.
132.SH "VERSION"
133.PP
134This man page is correct for version 3 of the Samba suite\&.
135.SH "SEE ALSO"
136.PP
137\fBsmb.conf\fR(5),
138\fBsmbd\fR(8)
139.SH "AUTHOR"
140.PP
141The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
142.PP
143The original Samba man pages were written by Karl Auer\&. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at
144ftp://ftp\&.icce\&.rug\&.nl/pub/unix/) and updated for the Samba 2\&.0 release by Jeremy Allison\&. The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&.
Note: See TracBrowser for help on using the repository browser.