Subject: pkg/8989: Samba 2.0.6 fails to start
To: None <gnats-bugs@gnats.netbsd.org>
From: None <barr@visi.com>
List: netbsd-bugs
Date: 12/13/1999 14:46:49
>Number:         8989
>Category:       pkg
>Synopsis:       smbd fails to start with "ERROR: root did not create the semaphore: semgid=950, rootgid=0"
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 13 14:45:01 1999
>Last-Modified:
>Originator:     David Barr
>Organization:
	
>Release:        NetBSD-current
>Environment:
	
System: NetBSD hokey 1.4P NetBSD 1.4P (HOKEY) #4: Mon Dec 13 12:52:04 CST 1999 root@hokey:/usr/src/sys/arch/sparc/compile/HOKEY sparc


>Description:

I'm surprised nobody has noticed this before, except perhaps if
this is a SPARC-specific issue.  I'm running -current as of a day
or two ago, 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?

>How-To-Repeat:
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
	
>Fix:
	
>Audit-Trail:
>Unformatted: