General Mac sharing can be achieved by configuring WINS,SMB. Note in the same workgroup!
Reference: http://computers.tutsplus.com/tutorials/how-to-set-up-an-smb-server-in-os-x-and-windows-8--mac-46276
Helpless configuration after a variety of tossing, XP always cannot access shared resources. (Win7 can actually access, but also only hear the sound of the egg broken).
Workaround: Install SAMBA3 to shut down the WINS SMB service. Share by using samba of your own configuration
1. Install Xcode6.2 from the App Store
2. Download the Xcode command-line tool
3. Download and install MacPorts (http://www.cnblogs.com/iclk/p/4342096.html)
4. Installing SAMBA3
sudo Install Samba3
5. Configure Samba
sudo smbpasswd-a username
Vim
If there is no smb.conf, a copy is copied according to Smb.conf.sample
==/users/==644755= no
6. Configure the self-boot
Vim/library/launchdaemons/org.samba.smbd.plist
<?xml version="1.0"encoding="UTF-8"? ><! DOCTYPE plist Public"-//apple computer//dtd PLIST 1.0//en" "HTTP://WWW.APPLE.COM/DTDS/PROPERTYLIST-1.0.DTD"><plist version="1.0"> <dict> <key>Label</key> <string>org.samba.smbd</string> <key>OnDemand</key> <false/> <key>ProgramArguments</key> <array> <string>/opt/local/sbin/smbd</string> <string>-f</string> </array> <key>RunAtLoad</key> <true/> <key>ServiceDescription</key> <string>samba</string> </dict></plist>
7. Turn off Apple ' s WINS services
sudo launchctl Stop Com.apple.netbiosd sudo launchctl unload-w /system/library/launchdaemons/com.apple.netbiosd.plist
8. Samba joins self-booting
sudo launchctl load/library/launchdaemons/org.samba.smbd.plist
Reference http://hints.macworld.com/article.php?story=20120401160655922
Samba server on Mac OS X Lion Server