Tuesday, August 23, 2022

Samba - Test Config File

 You can easily test your Samba server for configuration errors. It check an smb.conf configuration file for internal correctness. If this program reports no problems, you can use the configuration file with confidence that smbd will successfully load the configuration file.

Open a shell prompt and then type the following command:# testparm
OR# testparm /etc/samba/smb.conf
We will see the following message on screen:
Load smb config files from /usr/local/etc/smb4.conf Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions

If you hit the [Enter], key you will see other details

No comments: