Bonjour,
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 192.168.0.1 as private IP number and the linux box with the
printer has IP number 192.168.0.4
Here is my smb.conf file:
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2004/12/02 07:35:28
# Global parameters
[global]
workgroup = MYGROUP
server string = Samba Server
interfaces = 192.168.0.4/24, 192.168.0.1/24
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
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = No
[canon]
path = /var/spool/samba
guest ok = Yes
printable = Yes
printer name = canon
[canon1]
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 = 192.168.0.1.
Error = Ne peut attribuer l'adresse demand??e
[2004/12/08 03:03:54, 0] nmbd/nmbd_subnetdb.c:make_subnet(126)
nmbd_subnetdb:make_subnet()
Failed to open nmb socket on interface 192.168.0.1 for port 137. Error was Ne
peut attribuer l'adresse de
mand??e
[2004/12/08 03:03:54, 0] nmbd/nmbd.c:main(733)
ERROR: Failed when creating subnet lists. Exiting.
Here are the 198.162.0.4 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 (127.0.0.1) couldn't find service print$
There is a firewall on the gateway, but everything is opened on the private
network:
/sbin/iptables -A INPUT -i eth1 -s 192.168.0.0/24 -j ACCEPT
/sbin/iptables -A OUTPUT -o eth1 -d 192.168.0.0/24 -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
http://www.math-info.univ-paris5.fr/~patte