What I do BEFORE I do any mods to a file is this:
cp smb.conf smb.conf.bk01
Then you modify the file as you wish.
If you goof, you can always return back to the original file with a backout procedure.
cp smb.conf.bk01 smb.conf
I always prefer to prevent a problem than to fix a problem.