Changeset 134 for branches/samba-3.0/docs/manpages/testparm.1
- Timestamp:
- May 23, 2008, 6:56:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/docs/manpages/testparm.1
r44 r134 1 .\"Generated by db2man.xsl. Don't modify this, modify the source. 2 .de Sh \" Subsection 3 .br 4 .if t .Sp 5 .ne 5 6 .PP 7 \fB\\$1\fR 8 .PP 9 .. 10 .de Sp \" Vertical space (when we can't use .PP) 11 .if t .sp .5v 12 .if n .sp 13 .. 14 .de Ip \" List item 15 .br 16 .ie \\n(.$>=3 .ne \\$3 17 .el .ne 3 18 .IP "\\$1" \\$2 19 .. 20 .TH "TESTPARM" 1 "" "" "" 1 .\" Title: testparm 2 .\" Author: 3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/> 4 .\" Date: 05/21/2008 5 .\" Manual: User Commands 6 .\" Source: Samba 3.0 7 .\" 8 .TH "TESTPARM" "1" "05/21/2008" "Samba 3\.0" "User Commands" 9 .\" disable hyphenation 10 .nh 11 .\" disable justification (adjust text to left margin only) 12 .ad l 21 13 .SH "NAME" 22 14 testparm - check an smb.conf configuration file for internal correctness 23 15 .SH "SYNOPSIS" 24 16 .HP 1 25 testparm [ -s] [-h] [-v] [-L <servername>] [-t <encoding>] {config filename} [hostnamehostIP]17 testparm [\-s] [\-h] [\-v] [\-L\ <servername>] [\-t\ <encoding>] {config\ filename} [hostname\ hostIP] 26 18 .SH "DESCRIPTION" 27 19 .PP 28 20 This tool is part of the 29 21 \fBsamba\fR(7) 30 suite .22 suite\. 31 23 .PP 32 24 testparm 33 25 is a very simple test program to check an 34 26 \fBsmbd\fR(8) 35 configuration file for internal correctness . If this program reports no problems, you can use the configuration file with confidence that27 configuration file for internal correctness\. If this program reports no problems, you can use the configuration file with confidence that 36 28 smbd 37 will successfully load the configuration file .29 will successfully load the configuration file\. 38 30 .PP 39 31 Note that this is 40 \f BNOT\fR41 a guarantee that the services specified in the configuration file will be available or will operate as expected .32 \fINOT\fR 33 a guarantee that the services specified in the configuration file will be available or will operate as expected\. 42 34 .PP 43 If 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 .35 If 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\. 44 36 .PP 45 37 If 46 38 testparm 47 39 finds an error in the 48 \fI smb .conf\fR49 file 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 from50 testparm .40 \fI smb\.conf\fR 41 file 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 42 testparm\. 51 43 .SH "OPTIONS" 52 44 .PP 53 -s54 .RS 3n45 \-s 46 .RS 4 55 47 Without this option, 56 48 testparm 57 will prompt for a carriage return after printing the service names and before dumping the service definitions .49 will prompt for a carriage return after printing the service names and before dumping the service definitions\. 58 50 .RE 59 51 .PP 60 -h|--help61 .RS 3n62 Print a summary of command line options .52 \-h|\-\-help 53 .RS 4 54 Print a summary of command line options\. 63 55 .RE 64 56 .PP 65 -V66 .RS 3n67 Prints the program version number .57 \-V 58 .RS 4 59 Prints the program version number\. 68 60 .RE 69 61 .PP 70 -L servername71 .RS 3n62 \-L servername 63 .RS 4 72 64 Sets the value of the %L macro to 73 \fIservername\fR . This is useful for testing include files specified with the %L macro.65 \fIservername\fR\. This is useful for testing include files specified with the %L macro\. 74 66 .RE 75 67 .PP 76 -v77 .RS 3n68 \-v 69 .RS 4 78 70 If this option is specified, testparm will also output all options that were not used in 79 71 \fBsmb.conf\fR(5) 80 and are thus set to their defaults .72 and are thus set to their defaults\. 81 73 .RE 82 74 .PP 83 -t encoding84 .RS 3n85 Output data in specified encoding .75 \-t encoding 76 .RS 4 77 Output data in specified encoding\. 86 78 .RE 87 79 .PP 88 --parameter-name parametername89 .RS 3n90 Dumps 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.80 \-\-parameter\-name parametername 81 .RS 4 82 Dumps 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\. 91 83 .RE 92 84 .PP 93 --section-name sectionname94 .RS 3n95 Dumps the named section .85 \-\-section\-name sectionname 86 .RS 4 87 Dumps the named section\. 96 88 .RE 97 89 .PP 98 90 configfilename 99 .RS 3n100 This is the name of the configuration file to check . If this parameter is not present then the default91 .RS 4 92 This is the name of the configuration file to check\. If this parameter is not present then the default 101 93 \fBsmb.conf\fR(5) 102 file will be checked .94 file will be checked\. 103 95 .RE 104 96 .PP 105 97 hostname 106 .RS 3n98 .RS 4 107 99 If this parameter and the following are specified, then 108 100 testparm … … 115 107 file to determine if the hostname with this IP address would be allowed access to the 116 108 smbd 117 server . If this parameter is supplied, the hostIP parameter must also be supplied.109 server\. If this parameter is supplied, the hostIP parameter must also be supplied\. 118 110 .RE 119 111 .PP 120 112 hostIP 121 .RS 3n122 This is the IP address of the host specified in the previous parameter . This address must be supplied if the hostname parameter is supplied.113 .RS 4 114 This is the IP address of the host specified in the previous parameter\. This address must be supplied if the hostname parameter is supplied\. 123 115 .RE 124 116 .SH "FILES" 125 117 .PP 126 118 \fBsmb.conf\fR(5) 127 .RS 3n119 .RS 4 128 120 This is usually the name of the configuration file used by 129 \fBsmbd\fR(8) .121 \fBsmbd\fR(8)\. 130 122 .RE 131 123 .SH "DIAGNOSTICS" 132 124 .PP 133 The 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.125 The 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\. 134 126 .SH "VERSION" 135 127 .PP 136 This man page is correct for version 3 .0 of the Samba suite.128 This man page is correct for version 3\.0 of the Samba suite\. 137 129 .SH "SEE ALSO" 138 130 .PP … … 141 133 .SH "AUTHOR" 142 134 .PP 143 The 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.135 The 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\. 144 136 .PP 145 The 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 146 ftp://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. 147 137 The 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 138 ftp://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 TracChangeset
for help on using the changeset viewer.