30. Windows File Sharing; SAMBA
Introduction to FreeBSD

if you are installing from the ports it installs everything to /usr/local/samba/ The binary files are stored in the bin directory. The config file is located in lib/smb.conf

if you are installing from a package it installs stuff to /usr/local/sbin and the config file is in /usr/local/etc/smb.conf You will need to read the man page on smb.conf to understand how to create the smb.conf configuration file. The Documentation on smb.conf is extremely well written and comprehensive. Everything you could possibly put in the configuration file is included in that man page. To read it, type:

man smb.conf

Use testparm to check your config file. testparm will also tell you where Samba is looking for your default config file.

No matter which way you installed samba, you will need to modify your /etc/rc.local file to start Samba at boot up. To do this, include these lines in yourrc.local file:

/usr/local/sbin/smbd -D /usr/local/sbin/nmbd -D

Return to Table of Contents

Visit the Gifcom