Samba Troubleshooting Tips

A detailed description of the troubleshooting process used in Samba diagnosis is beyond the scope of this chapter. Suffice it to say that you diagnose Samba problems using a narrowing process similar to other troubleshooting tasks. This section gives a few handy tips for quick diagnosis of Samba problems.

Use testparm Early and Often

The testparm utility tests your smb.conf file for legal syntax, printing out errors and warnings for illegal syntaxes. The 15 seconds it takes is well worth the reduction in troubleshooting time. Many problems revealed by testparm are difficult to pinpoint with other tests.

Another great use for testparm is finding Samba's defaults. Start by creating an empty file called empty.fil. Then, ...

Get Red Hat® Linux® 7 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.