Opened 12 years ago

Closed 11 years ago

#35568 closed defect (duplicate)

samba3 @3.6.6 fails to start

Reported by: flexcode@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: samba3

Description

I'm running OSX 10.7.4 and have done a clean install of samba3. It was previously working but sometime during the last month I noticed I could no longer connect. Wondering if it is related to an OSX update.

Here is my current output, I've tried my old smb.conf, a new modified sample conf, and just the out of box conf.sample, all having the same error.

osx:~ rick$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.1.2 installed,
MacPorts base version 2.1.2 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
osx:~ rick$ sudo port upgrade outdated
Error: No ports matched the given expression
osx:~ rick$ sudo port clean samba3
--->  Cleaning samba3
osx:~ rick$ sudo port uninstall samba3
osx:~ rick$ sudo port install samba3
--->  Computing dependencies for samba3
--->  Fetching archive for samba3
--->  Attempting to fetch samba3-3.6.6_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/samba3
--->  Attempting to fetch samba3-3.6.6_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/samba3
--->  Installing samba3 @3.6.6_0
--->  Activating samba3 @3.6.6_0
--->  Cleaning samba3
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.
osx:~ rick$ sudo cp /opt/local/etc/samba3/smb.conf.sample /opt/local/etc/samba3/smb.conf
osx:~ rick$ sudo /opt/local/sbin/smbd -i
smbd version 3.6.6 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
get_user_groups: failed to get the unix group list
create_local_token failed: NT_STATUS_NO_SUCH_USER
osx:~ rick$

When I run the normal daemon way via

sudo /opt/local/sbin/smbd -D && sudo /opt/local/sbin/nmbd -D

smbd doesnt show up in my Activity Monitor but nmbd is running. I get similar error in my log

[2012/08/07 08:01:30.657994,  0] lib/system_smbd.c:228(getgroups_unix_user)
  get_user_groups: failed to get the unix group list
[2012/08/07 08:01:30.658191,  0] auth/auth_util.c:850(make_system_session_info_from_pw)
  create_local_token failed: NT_STATUS_NO_SUCH_USER

Attachments (1)

patch-source_lib_system_smbd_c.diff (351 bytes) - added by ice.rikh@… 12 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 12 years ago by flexcode@…

Cc: flexcode@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: flexcode@… removed
Keywords: samba removed
Owner: changed from macports-tickets@… to mww@…
Summary: samba 3.6.6 fails to startsamba3 @3.6.6 fails to start

comment:3 Changed 12 years ago by flexcode@…

I recently tried 3.6.7 and still have the same issue

comment:4 Changed 12 years ago by ice.rikh@…

The problem is discussed [here https://bugzilla.samba.org/show_bug.cgi?id=8773]. The patch at the bottom submitted by Adam Yearout fixes the problem; I am attaching that same patch.

To use it, save the patch as /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/samba3/files/patch-source_lib_system_smbd_c.diff and add patchfiles-append patch-source_lib_system_smbd_c.diff to the globals section at the top of /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/samba3/Portfile.

Then do sudo port uninstall samba3 followed by sudo port -s -v install samba3.

Changed 12 years ago by ice.rikh@…

comment:5 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: duplicate
Status: newclosed

Dupe of #34572

Note: See TracTickets for help on using tickets.