ports/167428: samba36 could not be configured to start only nmbd

Lev A. Serebryakov lev at FreeBSD.org
Sun Apr 29 15:50:11 UTC 2012


>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 at 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:



More information about the freebsd-ports-bugs mailing list