Pages

How do I test my Samba configuration file for errors ...?

If you are unsure about the configuration of your /etc/samba/smb.conf file and would like to check it, you can run the testparm command against the configuration file.

# testparm /etc/samba/smb.conf

If configuration is correct and no errors are detected, output of the command will contain

.
.
Loaded services file OK.
.
.

Otherwise, an error may appear:

------------------------------------------------------------------------------------------------------
params.c:Parameter() - Ignoring badly formed line in configuration file: RANDOM TEXT HERE TO CAUSE ISSUES

lp_bool(boolean_name): value is not boolean!
-------------------------------------------------------------------------------------------------------


No comments:

Post a Comment