testparm -s

Category: Administration

testparm -s

Validate the Samba configuration silently

Checks /etc/samba/smb.conf for syntax errors and prints the effective configuration, with -s suppressing the interactive prompts. A configuration with errors shows them with line numbers. This is the first command to run after editing smb.conf.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.