Setting up a file server in FreeBSD is not a very tough task. You just need to download the Samba server setup. Setting up a file server in your network will allow the machines with Windows operating system logged into your network, to access the resources on the server.
You need to install samba in the '/usr/ports/net/samba' folder. You can use the command make install to install it, once you are in that folder. Then you will have to make the necessary changes in the configuration files in the '/usr/local/etc/smb.conf' file. For initializing samba at the boot time, you just need to change the line 'samba_enable:=NO' to 'samba_enable:=YES' in the file 'rc.conf' located in the '/etc' folder.
Click to Download the pdf