Bug 154694 - Command-line smbd options incompatible with inetd/tcpserver use
Command-line smbd options incompatible with inetd/tcpserver use
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: samba (Show other bugs)
3
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Fenlason
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-13 11:48 EDT by Michael T. Babcock
Modified: 2014-08-31 19:27 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-04-13 12:57:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michael T. Babcock 2005-04-13 11:48:50 EDT
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 12:57:31 EDT
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.