SMB Wide Symlinks disabled again in OSX 10.7 Lion

Hey Everyone. I'm hoping all you fellow Linux / Apple experts out there can help me to make an adjustment that I would assume is minor, but has a big impact in my home network. Sometime around the release of 10.6.5 Apple decided to turn off wide symlinks for SMB shares as it was a security threat. Well after digging around I found that you can manually change these settings by editing the /etc/smb.conf file. Worked great. I have a home network server off my Mac that everything from my Windows 7 PC machine to my android phone connects to to access the shares off my mac through SMB. Problem is all these shares are setup with symlinks.


When OSX 10.7 was released, I've read that Apple ditched the open source samba and has their own setup now for SMB and AFP. This is all fine and dandy, but once again wide symlinks is disabled (Folders / Files show as 0kb instead of an actual file / folder) and I can't access any of the folders/files off my SMB shares anymore as they are all setup as symlinks. This has been beyond annoying. I've checked the smb.conf file in both /etc and /var/db/ to make sure:


follow symlinks = yes

wide links = yes

unix extensions = no

wide symlinks = yes


to make sure wide symlinks work on my SMB shares as before with NO LUCK. My guess is with the new Apple made SMB setup they are storing the settings for wide symlinks in a different location. DOES ANYONE KNOW WHERE I CAN MAKE THIS SIMPLE ADJUSTMENT in OS X 10.7 Lion???


Thank you.

Mac Pro, Mac OS X (10.7)

Posted on Jul 31, 2011 11:01 PM

Reply
21 replies

Sep 12, 2011 12:04 PM in response to piii666

This is what I get:


username$ ls -la /System/Library/LaunchDaemons/com.apple.smbd.plist

-rw-r--r-- 1 root wheel 644 Sep 9 15:47 /System/Library/LaunchDaemons/com.apple.smbd.plist



how do I try

sudo chown root /System/Library/LaunchDaemons/com.apple.smbd.plist

sudo chmod +rw /System/Library/LaunchDaemons/com.apple.smbd.plist


Put it in the terminal?


How do I use Nano via sudo


I am a novice....Thanks

Sep 14, 2011 1:26 AM in response to Abou Jalloh

Permissions are quite ok. Just use nano by using the following command in Terminal:


sudo nano /System/Library/LaunchDaemons/com.apple.smbd.plist


Then you will be asked to type your password and the nano editor will appear.


Alternatively you can issue the following command (as somebody has previously metioned) that will do the same thing automatically.


sudo defaults write /System/Library/LaunchDaemons/com.apple.smbd.plist ProgramArguments -array-add -string "--no-symlinks" -string "false"

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

SMB Wide Symlinks disabled again in OSX 10.7 Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.