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):
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.
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.