Samba server on Mac OS X Lion Server

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.