Solved Samba 4.x missing smb.conf.example

Hi All

None of the 4.x Samba ports include a smb.conf.example file so if your installation is brand new you have nothing to start from. (Samba 3.6 did include it.)

Did I miss something? Is it called something else?

I tried to read the changelogs but saw no mention of anything relating to that file being missing and I don't know if it's just in the FreeBSD ports or if it's in all packages for all OS's.

Can I use the old 3.6 smb.conf.example as a base for Samba4.4
 
Solved - sort of.

I found a smb.conf.example from 3.6 and put it into /usr/local/etc and edited it just as I did for 3.6 and almost everything worked.

A few differences for anyone coming from 3.x:

The file has to be called /usr/local/etc/smb4.conf not /usr/local/etc/smb.conf

The code for /etc/rc.conf is now
Code:
samba_server_enable="YES"
not
Code:
samba_enable="YES"

Finally - I got a lot of errors about not being able to access log files. A quick investigation shows that you need to change
/usr/local/etc/smb4.conf

From:
Code:
log file = /var/log/samba/log.%m

To:
Code:
log file = /var/log/samba4/log.%m

I hope this helps someone.
 
Once upon a time Samba was packaged and supplied with sample smb.conf file/s.
Since 4.x something, the configuration file has become a strictly roll-your-own topic.
Each Samba administrator can now choose their own adventure.

Thanks for the tips in this thread above, and pointer to git repo containing a sample smb4.conf.
 
Back
Top