[Samba] printing server

François Patte Francois.Patte at math-info.univ-paris5.fr
Wed Dec 8 12:48:16 GMT 2004


I have some problem to configure a printing server with samba. I have a private
network with a linux box as a gateway to the internet and several machine on
this network some under windows, others under linux. One of the linux machine
(which is not the gateway) has a printer which I want to be shared by the
windows machines.

The gateway has as private IP number and the linux box with the
printer has IP number

Here is my smb.conf file:

# Samba config file created using SWAT
# from (
# Date: 2004/12/02 07:35:28

# Global parameters
        workgroup = MYGROUP
        server string = Samba Server
        interfaces =,
        log file = /var/log/samba/%m.log
        max log size = 50
        name resolve order = host wins lmhosts bcast
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = yes
        ldap ssl = no
        printer admin = root
        hosts allow = 192.168.0., 127.
        cups options = raw

        comment = Home Directories
        read only = No
        browseable = No

        comment = All Printers
        path = /var/spool/samba
        guest ok = Yes
        printable = Yes
        browseable = No

        path = /var/spool/samba
        guest ok = Yes
        printable = Yes
        printer name = canon

        path = /var/spool/samba
        guest ok = Yes
        printable = Yes
        printer name = canon1

I get some error messages when smb start, here are from the nmbd.log:

                             [2004/12/08 03:03:54, 0] nmbd/nmbd.c:main(665)
  Netbios nameserver version 3.0.7-2.FC1 started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2004/12/08 03:03:54, 0] lib/util_sock.c:open_socket_in(708)
  bind failed on port 137 socket_addr =
  Error = Ne peut attribuer l'adresse demandée
[2004/12/08 03:03:54, 0] nmbd/nmbd_subnetdb.c:make_subnet(126)
  Failed to open nmb socket on interface for port 137.  Error was Ne
peut attribuer l'adresse de
[2004/12/08 03:03:54, 0] nmbd/nmbd.c:main(733)
  ERROR: Failed when creating subnet lists. Exiting.

Here are the samba log:

[2004/12/02 06:05:47, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(189)
  startsmbfilepwent_internal: file /etc/samba/smbpasswd did not exist. File
successfully created.
[2004/12/02 06:07:15, 0] smbd/service.c:make_connection(800)
  melusine ( couldn't find service print$

There is a firewall on the gateway, but everything is opened on the private

/sbin/iptables -A INPUT -i eth1 -s -j ACCEPT
/sbin/iptables -A OUTPUT -o eth1 -d -j ACCEPT

What is missing? Anybody could help me.

Thank you.
François Patte

Ecole française d'Extrême-Orient - Pune - Inde
Université René Descartes - Paris 5
UFR de mathématiques et informatique

More information about the samba mailing list