1TESTPARM(1)                      User Commands                     TESTPARM(1)
2
3
4

NAME

6       testparm - check an smb.conf configuration file for internal
7       correctness
8

SYNOPSIS

10       testparm [-s] [-h] [-v] [-t <encoding>] {config filename}
11        [hostname hostIP]
12

DESCRIPTION

14       This tool is part of the samba(7) suite.
15
16       testparm is a very simple test program to check an smbd(8)
17       configuration file for internal correctness. If this program reports no
18       problems, you can use the configuration file with confidence that smbd
19       will successfully load the configuration file.
20
21       Note that this is NOT a guarantee that the services specified in the
22       configuration file will be available or will operate as expected.
23
24       If the optional host name and host IP address are specified on the
25       command line, this test program will run through the service entries
26       reporting whether the specified host has access to each service.
27
28       If testparm finds an error in the smb.conf file it returns an exit code
29       of 1 to the calling program, else it returns an exit code of 0. This
30       allows shell scripts to test the output from testparm.
31

OPTIONS

33       -s
34           Without this option, testparm will prompt for a carriage return
35           after printing the service names and before dumping the service
36           definitions.
37
38       -?|--help
39           Print a summary of command line options.
40
41       -V|--version
42           Prints the program version number.
43
44       -v
45           If this option is specified, testparm will also output all options
46           that were not used in smb.conf(5) and are thus set to their
47           defaults.
48
49       -t encoding
50           Output data in specified encoding.
51
52       --parameter-name parametername
53           Dumps the named parameter. If no section-name is set the view is
54           limited by default to the global section. It is also possible to
55           dump a parametrical option. Therefore the option has to be
56           separated by a colon from the parametername.
57
58       --section-name sectionname
59           Dumps the named section.
60
61       configfilename
62           This is the name of the configuration file to check. If this
63           parameter is not present then the default smb.conf(5) file will be
64           checked.
65
66       hostname
67           If this parameter and the following are specified, then testparm
68           will examine the hosts allow and hosts deny parameters in the
69           smb.conf(5) file to determine if the hostname with this IP address
70           would be allowed access to the smbd server. If this parameter is
71           supplied, the hostIP parameter must also be supplied.
72
73       hostIP
74           This is the IP address of the host specified in the previous
75           parameter. This address must be supplied if the hostname parameter
76           is supplied.
77

FILES

79       smb.conf(5)
80           This is usually the name of the configuration file used by smbd(8).
81

DIAGNOSTICS

83       The program will issue a message saying whether the configuration file
84       loaded OK or not. This message may be preceded by errors and warnings
85       if the file did not load. If the file was loaded OK, the program then
86       dumps all known service details to stdout.
87

VERSION

89       This man page is correct for version 3 of the Samba suite.
90

SEE ALSO

92       smb.conf(5), smbd(8)
93

AUTHOR

95       The original Samba software and related utilities were created by
96       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
97       Source project similar to the way the Linux kernel is developed.
98
99       The original Samba man pages were written by Karl Auer. The man page
100       sources were converted to YODL format (another excellent piece of Open
101       Source software, available at ftp://ftp.icce.rug.nl/pub/unix/) and
102       updated for the Samba 2.0 release by Jeremy Allison. The conversion to
103       DocBook for Samba 2.2 was done by Gerald Carter. The conversion to
104       DocBook XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.
105
106
107
108Samba 3.6                         04/11/2016                       TESTPARM(1)
Impressum