2 examples for testparm

{{ score }}
  # Tests /etc/samba/smb.conf.master for correctness, and copies it to /etc/samba/smb.conf, ready for use.
sudo testparm -s /etc/samba/smb.conf.master > /etc/samba/smb.conf
        
{{ score }}
  # Tests the default samba config for correctness. /etc/samba/smb.conf
testparm