-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Samba formula needed - will be dropped from Mac OS X 10.7 #5954
Comments
Good to know, thanks. |
Unfortunately I am not enough of a code jockey to do this myself, notwithstanding the fact that I am very time constrained, but I can test the Formulas for the benefit of humanity - or at least the homebrew community. :-) |
And I'm willing to take advance brews into Homebrew-ALT: https://github.com/adamv/homebrew-alt/tree/master/duplicates |
I tried to build one, but failed. A lot of those little mediaboxes ( wdtv etc. ) stopped working with the "new" samba. |
Any news on the samba formula? With the release of Lion this is a pressing issue. |
Samba 3.6 just got release a couple of days ago: http://j.mp/qucdnf |
I have created a pull request, http://github.com/mxcl/homebrew/pull/7134, for a basic samba install (at least sufficient to use smbpasswd). In the meantime you can install it using: |
vertis, I tried compiling it too, and it crashed a lot, I tried with your compile options but I get the same result (I used PREFIX=$HOME/.samba3):
it's probably fixable with some |
vertis, I keep getting the following error while trying to run your samba recipe:
Do you know what could be causing this problem? |
I tried @vertis formular right now. Worked very well. Although during the process, my bash told me, /usr/local/bin is not in PATH which confused me a little. |
|
I already corrected it to /usr/local/bin, which is in my PATH, so thats confuses me. Also I noticed, that when ntlm_auth is used (currently in wine, when installing adobeair) it references bin/libtalloc.dylib.2 obviously this file is in /usr/local/lib/libtalloc.dylib.2 Whole error: I dunno if this is winetricks, formula or samba. Added /usr/local/lib to my PATH temporarily, no change. |
I am having the same issue. It was a Snow Leopard box that was upgraded to Lion, and then I purchased and installed Lion Server on it. samba3 gives me the same issue: [2011/09/28 09:42:47, 0] lib/system_smbd.c:getgroups_unix_user(171) I was thinking that maybe something changed with the authentication model when I installed Lion Server from the app store.. maybe you can help confirm that by sharing your scenario and we can figure this out together? BTW -- I am seeing the issue while installing from port also. |
@gossi, homebrew removes symbols from files by default. Add |
vertis, Any ideas? |
Got same problem as evoyt. Samba Formula is really needed for the Lion. brew install https://raw.github.com/vertis/homebrew/master/Library/Formula/samba.rb Error: Failed executing: make install |
There has to be something different about my environment. Did you upgrade from Snow Leopard or is it a clean install of Lion? On Saturday, 3 December 2011 at 11:53 PM, ifreq wrote:
|
clean install of Lion with newest Xcode. Only app/user data has been transferred from old system install. |
Okay, could be user error too! Was looking for Xcode and noticed that I have Xcode installer on my Applications folder.. so it was clear pebkac :) proelf:~ ifreq$ brew install https://raw.github.com/vertis/homebrew/master/Library/Formula/samba.rb |
BTW should the SMBD and NMBD work too? Mostly problems are with people with media boxes who try to access OSX desktop via SMB not vice versa. |
Can you guys paste the output to : And, then someone who has it working, can you do the same? I have a suspicion this line's the culprit : |
I'm running into the same problem, running as root, with 16+ groups for my user. It didn't have the same errors when I went ahead and ran it as a different user with less groups. It errors out for other reasons, but after poking around with the pid file, and a handful of others, I got it started (as root). I'll try reproduce. |
@neogenix, I'd love to know how you got it running. I hit the 16+ groups problem as root (the output you're asking for looks like this:) get_current_groups: user is in 16 groups: 0, 404, 1, 2, 3, 4, 5, 8, 9, 12, 20, 29, 33, 61, 80, 98 and running as myself I have various permissions errors, the latest being: bind failed on port 445 socket_addr = ::. |
Hi Everyone, the 16 group limit is returned by A formula including the patch and Samba 3.6.1 can be found here: https://github.com/angerman/homebrew/blob/patch-1/Library/Formula/samba.rb TL;DR: $ brew install https://raw.github.com/angerman/homebrew/patch-1/Library/Formula/samba.rb |
Excellent. I've merged this back into my samba recipe. |
So once this is installed, how do I make sure that smbd and nmbd are started on boot? |
.... make install failed: Error: Failed executing: make install |
@tooj try running it as root This is your problem: smbd_open_once_socket: open_socket_in: Permission denied |
What you basically want to do is follow the instructions on http://kofler.info/blog/167/126/Samba-unter-Lion-installieren/ |
After that long post above, I was able to get smbd started with massive changes to my smbd.conf file. However, I am unable to connect as a guest or user from another machine. I'll continue playing with the smbd.conf file to see if I can enable even guest access. |
Newest formula works nicely after it was patched and the sample configs proved to be quite helpful. On Jan 30, 2012, at 7:38 PM, fysa wrote:
|
Has this patch been submitted upstream? |
@adamv From what I can tell from browsing the issues, the issue hasn't been reported upstream. I will do more investigation this evening, and if I can't find anything, I'll raise the issue on the samba bugzilla. The patch as it stands is a workaround not a permanent solution, since it overrides the group limit to avoid the max of 16 that was causing problems. |
Hi, Vertis. Did you raise the issue in samba bugzilla? I keep seeing the problem with set_maxfiles and the group limit is still not properly patched up. In my case smbd crashes, hard, every time a connection from another machine is attempted when trying to apply the same formula to 3.6.3. It's clear the problems need to be patched at the source. |
@eduo this is not a problem with Samba, its a problem with apples own implementation of the SMB. As stated in the first post by BrazilianJoe So the source would be Apple themselves... and i can't see them doing much about it. |
@eXcalibre Hi, you're somehow mistakenly thinking I'm confused about what I'm asking about. Not referring to apple's implementation of smb2 or anything that could have as an answer a repeat of the widely known original statement about apple dropping samba. This ticket is about a formula for samba and I'm asking about that implementation precisely. When I say samba still crashes due to group limit errors how can that be construed as not knowing apple is dropping samba from osx? I can only imagine you assumed I made a question without having a clue and didn't double check what I was asking. It's specifically about samba 3.6.3 in Lion failing as implemented by the attached formula. To be clear: I'm the developer of a Samba front-end for Lion called SMBUp. I created it for a lot of users that couldn't connect their macs to their mediacenters or linux devices. I've been including Samba 3.2.15 but I wanted to update it to a more recent version. I have been finding some problems with 3.6 and upwards and have been checking solutions in different sites (trying to get both homebrew and macports "fixed" along the way). But there's still a nut to crack properly which is how the newer Samba versions have an issue with Lion's reporting of users groups. Now, Lion didn't change the way user groups are reported, it's the same function that's been in place and fixed in Samba since 2007, but something has changed in Samba in recent versions that makes the whole thing unusable. The Samba team has really not much interest in fixing anything related to Mac OS X and at the moment couldn't care less that it's impossible, with the latest 20 stable releases, to create a shared drive that can be authenticated by the machine's main user (it can by any other user, though). I know Samba and have been using it for more than a decade, but I'm not that familiar with its more recent code releases so I'm not confident enough to go in and make changes to the source other than the most basic ones. Nothing Apple is doing or not doing any more in Lion has anything to do with any of this. They're not the source of any problems in the Samba implementation or errors when running it. Those are 100% samba. If anything, changes from Apple have not permeated into newer versions (this "Groups" problem was fixed for OS X by James Peach in 2007 and had been working OK until recently). Apple's implementation of SMB has nothing to do with Samba, when run in the same machine, as long as Apple's is disabled (and it would have to be). For the record: I'm happy Apple stopped including Samba and don't think it should've never done so in the same way I don't see a point in Windows including Appletalk. I'm not even that happy with them including SMB2 but at least it's not a hacked-together hodgepodge of reverse-engineered proprietary protocols. I'd be happy if they removed it whole and let third parties implement it properly. |
Just to make sure everyone is clear. I don't pretend to be an expert on samba, I created this formula mostly because I needed the ability to use smbpasswd to change my AD credentials at work. If anyone has patches that will make the samba formula handle groups and authenticated shares better then please send pull requests. @eduo I believe @lasombra has raised the bug upstream on samba.org bugzilla (#8773). On Wednesday, 29 February 2012 at 7:17 PM, eduo wrote:
|
As far as creating a brew recipe that works, why not build the old samba from 10.6.8? |
brew install https://raw.github.com/vertis/homebrew/master/Library/Formula/samba.rb curl: (22) The requested URL returned error: 404 |
Hi kartagis, brew install https://raw.github.com/vertis/homebrew/samba/Library/Formula/samba.rb Regards, Luke Luke On Thursday, 12 April 2012 at 5:34 PM, kartagis wrote:
|
Wow, that was fast. Thanks Luke :) |
@eduo - do you know the last version of Samba that did not have the Lion groups issue, i.e. previous to 3.6.3? I have tried manually editing the /source3/lib/system.c file to just return 64 whatever happens as a quick test (I'm only running on OS X anyway), and that didn't work either. |
All versions of samba have the problem, as what changed was OS X. Lion sees a problem returning that had already been fixed by previous OS X versions for all Samba versions. Even the "fix" outlined in this thread doesn't really solve the issue, only shifts its effects elsewhere. |
Wishful thinking on my part. I would say that people experience these issues try DAVE. I've given it another shot - I don't mind having to create local accounts to go along side ODM accounts for the 4 PC users. I've been needing a replacement to Apple's SMB2 because the PC users we have use 3ds Max which doesn't work with Apple's implementation, but does with Thursby's DAVE no problem. |
I was reported yesterday (I make a tool called SMBUp, a front-end for If you confirm it works please let me know to be sure. I tend to recommend Dave when samba fails. |
No, DAVE doesn't have the issues - it's running as we speak. I literally swapped it with Samba 3.6.3 (Homebrew) and it's solved the issues. |
It seems the guys at MacPorts did it. I'm going to test it through today. |
Really - can you let me know where you read/found that? |
I gave up on homebrew and used the MacPorts version, It works great. |
That's odd as I recently used MacPorts Samba and was having the same 16 group issue. Perhaps they fixed it recently? |
Here is how I did it (don't recall the source, but I put it into Evernote...): Installing Samba on LionLion does not use as Snow Leopard, the open-source program to release Samba network shares, but the self-developed SMBX server . The collaboration worked well with Windows in my tests, but not for me much more important interaction with Linux. Remedy the described installation of Samba. LimitationsBefore you start, you should know, with what qualifications you need to put up with:
|
I'm on the MacPorts lists and I didn't see anything that pointed at fixing the 16-group problem. What Macports did was update to 3.6.3 and then 3.6.5, but I was involved in bugfixes related to those. The 16-group problem wasn't really addressed (the most-common fix was to up the default group number, but that doesn't really avoid the problem). Still, even if the bug persists, it's nice that Macports updated samba, finally. Eduo On may 21, 2012, at 3:32 p.m., LaSombra wrote:
|
It doesn't, I've check it as well, but it's working for some reason. |
Added 3.6.5 in #10311 |
|
@vertexclique please open a new issue. |
Due to the license change to GPL3, Apple will no longer be able to ship Samba with Mac OS X.
It was said in the media that Apple is going to provide their own tools for interacting with SMB shares, but it is a very complex system, and I doubt it will be feature complete.
So far, Lion Developer Preview 4 is unable to connect to (my test case) linux-based samba shares which require authentication.
It has been announced by the media (not Apple afaik) that Lion would support SMB2 only, and leave the legacy behind.
Ideally the installation would not only install the SMB tools, but also make itself known to apps like Finder, so that it can be used just like the way it was before.
The text was updated successfully, but these errors were encountered: