First, install Xcode 4.1 (DP7 or GM is needed currently).
Second, install MacPorts from SVN using these directions http://guide.macports.org/#installin...rts.subversion
After installing MacPorts, you may need to add it to your PATH, so go ahead and run:
This will make sure that it is added to your path, and you shouldn't have to specify full paths to binaries. The second command tells macports to download the latest versions of the portfiles (instructions for macports on installing a program)
echo "export PATH=/opt/local/bin:$PATH" > ~/.profile
sudo port -d sync
Once everything with macports is finished setting up, open up a terminal window and type sudo port install samba3. It'll automatically install samba 3 and all of its dependencies.
Now to edit the configuration! It's pretty straight forward if you read through the config file located at /opt/local/etc/samba3/smb.conf. You do have to edit it as root however, so do like sudo vi /opt/local/etc/samba3/smb.conf or some other terminal based editor you're familiar with. Make sure that your "server string" setting is the same as your computer name was under 10.6.x or you'll have to rescan your library
Your shares should look something like this (you can have as many as you like):
If you desire to make the share accessable to a specific user only, then you'll have to do smbpasswd -a <username> which will setup the username and password for that user. Also by changing "guest ok" to no.. will make it so samba requires a username and password to access that share.
comment = RAID
path = /Volumes/RAID
available = yes
guest ok = yes
create mask = 644
directory mask = 755
read only = no
All that's left now is to do "sudo /opt/local/sbin/smbd -D && sudo /opt/local/sbin/nmbd -D" (I'm using full paths so we dont accidentally start up the apple supplied smb server ) and samba will be up and running. The only downside I've found is that you do need to remember to start samba every time you reboot (the "sudo /opt/local/sbin/smbd -D && sudo /opt/local/sbin/nmbd -D" commands).
I've not tested it, but a friend of mine sent this for a launchagent:
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
You should be able to copy that into a file called like com.whatever.samba3.plist, and put it in /Library/LaunchAgents, and it should automatically start up samba for you
Let me know if you have any extra questions, and I'll try to answer them the best I can.
It would be really helpful for me to know what the issue is if you could add the results of these commands to any reports: