Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Apr 2012 19:42:25 +0400 (MSK)
From:      "Lev A. Serebryakov" <lev@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dougb@FreeBSD.org
Subject:   ports/167428: samba36 could not be configured to start only nmbd
Message-ID:  <20120429154225.E16974AC32@onlyone.friendlyhosting.spb.ru>
Resent-Message-ID: <201204291550.q3TFoAVS051216@freefall.freebsd.org>

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

>Number:         167428
>Category:       ports
>Synopsis:       samba36 could not be configured to start only nmbd
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 29 15:50:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Lev A. Serebryakov
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD blob.home.serebryakov.spb.ru 8.2-STABLE FreeBSD 8.2-STABLE #26: Thu Feb 2 21:16:00 MSK 2012 lev@blob.home.serebryakov.spb.ru:/usr/obj/usr/src/sys/BLOB amd64
samba-3.6.4_1

>Description:
	
(1) Build samba without winbindd.
(2) Configure it to start only nmbd:

samba_enable="YES"
smbd_enable="NO"
  
  OR

samba_enable="YES"
smbd_enable="NO"
nmbd_enable="YES"
  
  OR

smbd_enable="NO"
nmbd_enable="YES"

(3) Try to start service:

# /usr/local/etc/rc.d/samba start
Cannot 'start' samba. Set smbd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.

(4) Ooops... In all three configurations result is the same.

 I was say, that when it is build with winbindd, and ONLY winbindd is enabled in /etc/rc.conf, result is the same. So, it is not possible to run only nmbd or winbindd anymore from some point of time :(

 Also, it seems, that 'rc.d/samba' contains useless variable assigments:

# nmbd
rcvar=nmbd_enable # <- THIS
nmbd_enable=${nmbd_enable:=NO}
nmbd_flags=${nmbd_flags="-D"}
# smbd
rcvar=smbd_enable # <- THIS
smbd_enable=${smbd_enable:=NO}
smbd_flags=${smbd_flags="-D"}

>How-To-Repeat:
 
  See above.

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



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