samba and inetd problems

James Sutherland jas88 at cam.ac.uk
Fri May 19 15:43:22 GMT 2000


On Fri, 19 May 2000, Ron Alexander wrote:

> Can someone PLEASE tell me if using inetd is the recommended way or not?

If you can run it as a daemon, rather than through inetd, do so (unless
it's a VERY low traffic daemon; I run the ftpd on my workstation that
way, since I only use FTP for occasional transfers to/from it.)

> According to all the books I have, it is recommended.

By whom?? Specifically Samba books?

> I don't understand how it could work however, since inetd would hear the
> connection requests on port 139 before the smb daemon would. As a result,
> you would get more smb daemons starting and failing becuse they could not
> lock the smbd.pid file.

No. It's a straight choice: EITHER inetd listens on port 139, then loads
one smbd per request (connection), OR smbd does it all alone. You never
get both smbd and inetd listening on port 139 simultaneously: one or
other will get an error that the address is in use.

I'd run as a normal daemon; the overhead of running via inetd is too much
for normal servers, I suspect...


James.



More information about the samba-technical mailing list