How do I test my Samba configuration for errors?

Updated -

The testparm command can be used to check your /etc/samba/smb.conf file for errors. From a shell prompt type:

testparm /etc/samba/smb.conf

Where /etc/samba/smb.conf is the path to the samba configuration file you wish to test. A typical output would look like this:

[root]# testparm /etc/samba/smb.conf
Load smb...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In