source: branches/samba-3.0/docs/manpages/testparm.1@ 218

Last change on this file since 218 was 158, checked in by Paul Smedley, 17 years ago

Update source to 3.0.32

File size: 4.2 KB
Line 
1.\" Title: testparm
2.\" Author:
3.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4.\" Date: 08/25/2008
5.\" Manual: User Commands
6.\" Source: Samba 3.0
7.\"
8.TH "TESTPARM" "1" "08/25/2008" "Samba 3\.0" "User Commands"
9.\" disable hyphenation
10.nh
11.\" disable justification (adjust text to left margin only)
12.ad l
13.SH "NAME"
14testparm - check an smb.conf configuration file for internal correctness
15.SH "SYNOPSIS"
16.HP 1
17testparm [\-s] [\-h] [\-v] [\-L\ <servername>] [\-t\ <encoding>] {config\ filename} [hostname\ hostIP]
18.SH "DESCRIPTION"
19.PP
20This tool is part of the
21\fBsamba\fR(7)
22suite\.
23.PP
24testparm
25is a very simple test program to check an
26\fBsmbd\fR(8)
27configuration file for internal correctness\. If this program reports no problems, you can use the configuration file with confidence that
28smbd
29will successfully load the configuration file\.
30.PP
31Note that this is
32\fINOT\fR
33a guarantee that the services specified in the configuration file will be available or will operate as expected\.
34.PP
35If 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\.
36.PP
37If
38testparm
39finds an error in the
40\fI smb\.conf\fR
41file 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
42testparm\.
43.SH "OPTIONS"
44.PP
45\-s
46.RS 4
47Without this option,
48testparm
49will prompt for a carriage return after printing the service names and before dumping the service definitions\.
50.RE
51.PP
52\-h|\-\-help
53.RS 4
54Print a summary of command line options\.
55.RE
56.PP
57\-V
58.RS 4
59Prints the program version number\.
60.RE
61.PP
62\-L servername
63.RS 4
64Sets the value of the %L macro to
65\fIservername\fR\. This is useful for testing include files specified with the %L macro\.
66.RE
67.PP
68\-v
69.RS 4
70If this option is specified, testparm will also output all options that were not used in
71\fBsmb.conf\fR(5)
72and are thus set to their defaults\.
73.RE
74.PP
75\-t encoding
76.RS 4
77Output data in specified encoding\.
78.RE
79.PP
80\-\-parameter\-name parametername
81.RS 4
82Dumps 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\. Therfore the option has to be separated by a colon from the parametername\.
83.RE
84.PP
85\-\-section\-name sectionname
86.RS 4
87Dumps the named section\.
88.RE
89.PP
90configfilename
91.RS 4
92This is the name of the configuration file to check\. If this parameter is not present then the default
93\fBsmb.conf\fR(5)
94file will be checked\.
95.RE
96.PP
97hostname
98.RS 4
99If this parameter and the following are specified, then
100testparm
101will examine the
102\fIhosts allow\fR
103and
104\fIhosts deny\fR
105parameters in the
106\fBsmb.conf\fR(5)
107file to determine if the hostname with this IP address would be allowed access to the
108smbd
109server\. If this parameter is supplied, the hostIP parameter must also be supplied\.
110.RE
111.PP
112hostIP
113.RS 4
114This is the IP address of the host specified in the previous parameter\. This address must be supplied if the hostname parameter is supplied\.
115.RE
116.SH "FILES"
117.PP
118\fBsmb.conf\fR(5)
119.RS 4
120This is usually the name of the configuration file used by
121\fBsmbd\fR(8)\.
122.RE
123.SH "DIAGNOSTICS"
124.PP
125The 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\.
126.SH "VERSION"
127.PP
128This man page is correct for version 3\.0 of the Samba suite\.
129.SH "SEE ALSO"
130.PP
131\fBsmb.conf\fR(5),
132\fBsmbd\fR(8)
133.SH "AUTHOR"
134.PP
135The 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\.
136.PP
137The 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
138ftp://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.