Porblème de lancement des services samba

Bonjour,

Voilà j’ai réinstallé mon serveur Debian 4.0r3 etch AMD64 avec le service SAMBA.

Petit soucis, tout marche à merveille que si je lance manuellement Samba : “/etc/init.d/samba start”.

Si je démarre mon serveur normalement, les démons nmbd et smbd ne se lancent pas.
Pourtant j’ai crontrôlé les services activés dans /etc/rc5.d et /etc/rc2.d et je trouve bien un lien “S20samba” qui pointe sur /etc/init.d/samba.

J’ai vu aussi que le service NFS se lance après : S21nfs-common. Est-ce que ça joue un rôle ? J’ai rien toucher à ces trucs. C’est après avoir installé mon Samba que j’ai trouvé ça comme ça.

Merci pour vos idées

Que disent les logs?

Bon j’ai parlé un peu vite, ils étaient bien lancé.
Je les vois avec un “pstree”.

Par contre impossible de se connecter dessus jusque j’ai fait un “samba stop” et “samba start”.

Voilà les logs que j’ai trouvé (vous pensiez à un autre log ?) :

log.smbd

[2008/05/09 12:32:24, 0] smbd/server.c:main(847) smbd version 3.0.24 started. Copyright Andrew Tridgell and the Samba Team 1992-2006 [2008/05/09 12:32:24, 0] printing/pcap.c:pcap_cache_reload(159) Unable to open printcap file /etc/printcap for read! [2008/05/09 12:32:24, 0] printing/pcap.c:pcap_cache_reload(159) Unable to open printcap file /etc/printcap for read! [2008/05/09 12:32:24, 0] lib/interface.c:load_interfaces(225) WARNING: no network interfaces found [2008/05/09 12:36:41, 0] smbd/server.c:main(847) smbd version 3.0.24 started. Copyright Andrew Tridgell and the Samba Team 1992-2006 [2008/05/09 12:36:41, 0] printing/pcap.c:pcap_cache_reload(159) Unable to open printcap file /etc/printcap for read! [2008/05/09 12:36:41, 0] printing/pcap.c:pcap_cache_reload(159) Unable to open printcap file /etc/printcap for read!

log.nmbd

[2008/05/09 12:32:24, 0] nmbd/nmbd.c:main(699) Netbios nameserver version 3.0.24 started. Copyright Andrew Tridgell and the Samba Team 1992-2006 [2008/05/09 12:32:24, 0] lib/interface.c:load_interfaces(225) WARNING: no network interfaces found [2008/05/09 12:32:24, 0] nmbd/nmbd_subnetdb.c:create_subnets(190) create_subnets: No local interfaces ! [2008/05/09 12:32:24, 0] nmbd/nmbd_subnetdb.c:create_subnets(191) create_subnets: Waiting for an interface to appear ... [2008/05/09 12:36:37, 0] nmbd/nmbd.c:terminate(58) Got SIGTERM: going down... [2008/05/09 12:36:41, 0] nmbd/nmbd.c:main(699) Netbios nameserver version 3.0.24 started. Copyright Andrew Tridgell and the Samba Team 1992-2006

log.ppc-nyon-03 (mon PC)

[2008/05/09 12:30:22, 1] smbd/service.c:close_cnum(1150) ppc-nyon-03 (192.168.1.54) closed connection to service waldertrueb [2008/05/09 12:37:50, 1] smbd/service.c:make_connection_snum(950) ppc-nyon-03 (192.168.1.54) connect to service waldertrueb initially as user obelix (uid=1000, gid=1000) (pid 3402)

Jusqu’à 12:32 c’est le boot du serveur. Les services sont lancés mais on dirait qu’il y a une problème avec l’interface réseau.

A partir de 12:36 c’est après mes commandes “samba stop” et “samba start”.
Et là ça marche…

Faudrait-il que je vire les lignes suivantes de mon smb.conf ?

... interface = eth0 bind interfaces only = true ...

En effet après avoir mi en commentaire les deux ligne suivante de mon fichier /etc/samba/smb.conf , cela fonctionne sans avoir besoin d’arrêter et redémarrer les services samba après le boot du serveur.

[quote]…
interface = eth0
bind interfaces only = true
…[/quote]

Quelqu’un peut-il m’expiquer ? :stuck_out_tongue: