Changeset 44 for trunk/samba/docs/htmldocs/manpages/testparm.1.html
- Timestamp:
- Jun 29, 2007, 1:34:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/docs/htmldocs/manpages/testparm.1.html
r39 r44 1 1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>testparm</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.0"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="testparm.1"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>testparm — check an smb.conf configuration file for 2 internal correctness</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class=" command">testparm</code> [-s] [-h] [-v] [-L <servername>] [-t <encoding>] {config filename} [hostname hostIP]</p></div></div><div class="refsect1" lang="en"><a name="id259558"></a><h2>DESCRIPTION</h2><p>This tool is part of the <a href="samba.7.html"><span class="citerefentry"><span class="refentrytitle">samba</span>(7)</span></a> suite.</p><p><span><strong class="command">testparm</strong></span> is a very simple test program2 internal correctness</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="> is a very simple test program 3 3 to check an <a href="smbd.8.html"><span class="citerefentry"><span class="refentrytitle">smbd</span>(8)</span></a> configuration file for 4 4 internal correctness. If this program reports no problems, you 5 can use the configuration file with confidence that < span><strong class="command">smbd6 </ strong></span> will successfully load the configuration file.</p><p>Note that this is <span class="emphasis"><em>NOT</em></span> a guarantee that5 can use the configuration file with confidence that <">smbd 6 </> will successfully load the configuration file.</p><p>Note that this is <span class="emphasis"><em>NOT</em></span> a guarantee that 7 7 the services specified in the configuration file will be 8 8 available or will operate as expected. </p><p>If the optional host name and host IP address are 9 9 specified on the command line, this test program will run through 10 10 the service entries reporting whether the specified host 11 has access to each service. </p><p>If < span><strong class="command">testparm</strong></span> finds an error in the <code class="filename">11 has access to each service. </p><p>If <> finds an error in the <code class="filename"> 12 12 smb.conf</code> file it returns an exit code of 1 to the calling 13 13 program, else it returns an exit code of 0. This allows shell scripts 14 to test the output from < span><strong class="command">testparm</strong></span>.</p></div><div class="refsect1" lang="en"><a name="id259384"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-s</span></dt><dd><p>Without this option, <span><strong class="command">testparm</strong></span>14 to test the output from <> 15 15 will prompt for a carriage return after printing the service 16 16 names and before dumping the service definitions.</p></dd><dt><span class="term">-h|--help</span></dt><dd><p>Print a summary of command line options. … … 34 34 default <a href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> file will be checked. 35 35 </p></dd><dt><span class="term">hostname</span></dt><dd><p>If this parameter and the following are 36 specified, then < span><strong class="command">testparm</strong></span> will examine the <em class="parameter"><code>hosts36 specified, then <> will examine the <em class="parameter"><code>hosts 37 37 allow</code></em> and <em class="parameter"><code>hosts deny</code></em> 38 38 parameters in the <a href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> file to 39 39 determine if the hostname with this IP address would be 40 allowed access to the < span><strong class="command">smbd</strong></span> server. If40 allowed access to the <> server. If 41 41 this parameter is supplied, the hostIP parameter must also 42 42 be supplied.</p></dd><dt><span class="term">hostIP</span></dt><dd><p>This is the IP address of the host specified
Note:
See TracChangeset
for help on using the changeset viewer.
