Bug 154694 - Command-line smbd options incompatible with inetd/tcpserver use
Summary: Command-line smbd options incompatible with inetd/tcpserver use
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jay Fenlason
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-04-13 15:48 UTC by Michael T. Babcock
Modified: 2014-08-31 23:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-04-13 16:57:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael T. Babcock 2005-04-13 15:48:50 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2

Description of problem:
Using the original source code for Samba, one can run "smbd -i" as the command line for xinetd, inetd or tcpserver on ports 139/445 to use those handlers instead of launching smbd as a daemon.  This feature is broken on Fedora Core 3 packaged versions of smbd -- for some reason, smbd -i causes debugging output to be sent to stdout (instead of stderr) which breaks the network interaction happenning on stdin/stdout in this configuration

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
Run tcpserver -v -d -O 0 netbios-ssn smbd -i

(where tcpserver is from daemontools; use similar command lines for xinetd or inetd launching)

Actual Results:  smbd logs its output to stdout, which is being used for network traffic, confusing clients connecting to the daemon.

Expected Results:  smbd should communicate over stdout only with network protocol data.

Additional info:

Comment 1 Jay Fenlason 2005-04-13 16:57:31 UTC
According to the smbd manual ("man smbd"), -i turns on "interactive" mode, and 
is documented as working as you describe.  Therefore this is NOTABUG. 
 
In chapter 36 of The Official Samba HOWTO and Reference Guide, on page 488 
(page 539 in the .pdf on my Red Hat Enterprise Linux 4 system 
(/usr/share/doc/samba*/docs/Samba-HOWTO-Collection.pdf), the example 
inetd.conf lines do not contain -i.  Perhaps you are confusing Samba-3 with a 
previous version of Samba?  They are very different, and expecting one to work 
like the other will only lead to confusion and misconfiguration. 


Note You need to log in before you can comment on or make changes to this bug.