Testparm - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

The
program performs backup and restores of Windows-based share files and
smbtar
directories to a local tape archive. Though similar to the
compatible.
8.17.

testparm

testparm <options> <filename> <hostname IP_address>
The
program checks the syntax of the
testparm
default location (
/etc/samba/smb.conf
hostname and IP address to the
files are configured correctly. The
host.deny
your
file and the server's role (stand-alone, domain, etc.) after testing. This is
smb.conf
convenient when debugging as it excludes comments and concisely presents information for
experienced administrators to read.
For example:
testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[tmp]"
Processing section "[html]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions <enter>
# Global parameters
[global]
workgroup = MYGROUP
server string = Samba Server
security = SHARE
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[tmp]
comment = Wakko tmp
path = /tmp
guest only = Yes
[html]
smb.conf
) you do not need to specify the location. Specifying the
program verifies that the
testparm
testparm
command, the two are not
tar
file. If your
smb.conf
hosts.allow
program also displays a summary of
testparm
file is in the
and
273

Advertisement

Table of Contents
loading

Table of Contents