Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jul 2013 08:23:24 GMT
From:      Ben Woods <woodsb02@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/180226: net/samba4 port rc script syntax errors ("samba" vs "smbd")
Message-ID:  <201307030823.r638NO6G082476@oldred.freebsd.org>
Resent-Message-ID: <201307030830.r638U0ra087669@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         180226
>Category:       ports
>Synopsis:       net/samba4 port rc script syntax errors ("samba" vs "smbd")
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 03 08:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Ben Woods
>Release:        FreeBSD 9.1-RELEASE-p4
>Organization:
>Environment:
FreeBSD sparticus.home.local 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Samba4 daemon fails to start via the rc script after installing from ports. This is caused by the following errors in the files/samba4.in rc script:
- incorrect executable file: /usr/local/sbin/samba should be /usr/local/sbin/smbd
- incorrectly PID file: samba.pid should be smbd.pid.

This is confirmed by the following text found in /var/log/samba4/log.%m:

[2013/07/03 15:24:42,  0] ../source4/smbd/server.c:461(binary_smbd_main)
  At this time the 'samba' binary should only be used for either:
  'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpointservers = remote'
  You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
>How-To-Repeat:
1. Install net/samba4-4.0.4_1 from ports or packages
2. Add samba4_enable="YES" to /etc/rc.conf
3. Run # service samba4 start
4. Review running status via # service samba4 status
5. Review log file at /var/log/samba4/log.%m
>Fix:
Modify rc script (files/samba4.in) in port net/samba4:

42c42
< command="%%PREFIX%%/sbin/${name}"
---
> command="%%PREFIX%%/sbin/smbd"

44c44
< pidfile="%%SAMBA4_RUNDIR%%/samba.pid"
---
> pidfile="%%SAMBA4_RUNDIR%%/smbd.pid"

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307030823.r638NO6G082476>