Subject: Samba 2.0.6 broken on SPARC?
To: None <current-users@netbsd.org>
From: Dave Barr <barr@visi.com>
List: current-users
Date: 12/13/1999 12:06:22
I'm surprised nobody has noticed this before, except perhaps
if this is a SPARC-specific issue.  I'm running -current,
and trying to run the pkgsrc Samba to do domain logins.
I get the following error in log.smb and smbd fails to even start:

[1999/12/10 05:09:21, 1] smbd/server.c:main(643)
  smbd version 2.0.6 started.
  Copyright Andrew Tridgell 1992-1998
[1999/12/10 05:09:21, 1] smbd/files.c:file_init(216)
  file_init: Information only: requested 10000 open files, 1762 are
available.
[1999/12/10 05:09:21, 0] locking/shmem_sysv.c:sysv_shm_open(601)
  ERROR: root did not create the semaphore: semgid=950, rootgid=0
[1999/12/10 05:09:21, 0] locking/locking.c:locking_init(174)
  ERROR: Failed to initialise share modes

I see an ipc created, owned by root, group wheel(0).
It looks like Samba is confused by NetBSD's SysV SHM?

My smb.conf follows:

[global]
        workgroup = LLMDSB
        server string = NetBSD - Samba %v
        security = DOMAIN
        log file = /var/log/log.%m
        max log size = 50
        domain logons = Yes
        domain master = Yes
        wins support = Yes

[homes]
        comment = Home Directories
        read only = No

[netlogon]
        comment = Network Logon Service
        path = /usr/pkg/lib/netlogon
        guest ok = Yes
        share modes = No

[printers]
        comment = All Printers
        path = /var/tmp
        print ok = Yes