Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 27/04/2006, à 12:25

Bastes

[résollu] * Starting Samba daemons.. [fail]

Bonjour, je viens d'installer Samba sur ma petite ubuntu.

Pour partager mes répertoires, je fais une copie de sauvegarde du /etc/samba/smb.conf, et je commence à modifier le fichier. Pour revenir en arrière, je reprend mon fichier sauvegardé et j'écrase le fichier modifié.

Depuis, samba ne se relance plus :

* Starting Samba daemons..                                              [fail]

Que dois-je faire ? Où traquer le bug ?

(Oui, je suis un gros newbie.)

Merci d'avance.

Dernière modification par Bastes (Le 28/04/2006, à 11:41)


"'Tell me,' said Moist, 'have you ever heard of something called the Smoking Gnu?'"

Terry Pratchett, Going Postal

Hors ligne

#2 Le 27/04/2006, à 14:03

Bastes

Re : [résollu] * Starting Samba daemons.. [fail]

(heu, os court ?)


"'Tell me,' said Moist, 'have you ever heard of something called the Smoking Gnu?'"

Terry Pratchett, Going Postal

Hors ligne

#3 Le 27/04/2006, à 17:14

Black_pignouf

Re : [résollu] * Starting Samba daemons.. [fail]

Salut!

fais nous voir ton /etc/samba/smb.conf pour qu'on en sache un peu plus.
Parce que là, à part que ca ne fonctionne pas, on ne sait pas grand chose! wink

Hors ligne

#4 Le 27/04/2006, à 17:36

Bastes

Re : [résollu] * Starting Samba daemons.. [fail]

D'ac.
C'est du brut de décoffrage tout juste sorti de l'apt (j'ai quand même ôté tous les commentaires) :

[global]
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = share
encrypt passwords = true
passdb backend = tdbsam guest
obey pam restrictions = yes
invalid users = root
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
socket options = TCP_NODELAY

[homes]
comment = Home Directories
browseable = no
create mask = 0700
directory mask = 0700

[printers]
comment = All Printers
browseable = no
path = /tmp
printable = yes
create mask = 0700

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

Pardon de ne pas l'avoir indiqué avant (pas encore les bonnes habitudes du forum).

Ce que je ne comprend pas surtout, c'est pourquoi il "faile" alors que j'ai remis le smb.conf de base.

Si quelqu'un a une idée sur le sujet, même bizarre, je suis preneur, je ne sais vraiment pas par quoi commencer.

Dernière modification par Bastes (Le 27/04/2006, à 17:37)


"'Tell me,' said Moist, 'have you ever heard of something called the Smoking Gnu?'"

Terry Pratchett, Going Postal

Hors ligne

#5 Le 27/04/2006, à 23:31

Bastes

Re : [résollu] * Starting Samba daemons.. [fail]

(personne n'a une idée ? même petite ? un conseil pour savoir où commencer à chercher ?)


"'Tell me,' said Moist, 'have you ever heard of something called the Smoking Gnu?'"

Terry Pratchett, Going Postal

Hors ligne

#6 Le 28/04/2006, à 02:17

YBM

Re : [résollu] * Starting Samba daemons.. [fail]

il n'y a pas de messages dans /var/log/samba/log.smbd ou /var/log/samba/log.nmbd ?

que donne la sortie du programme testparm ?

Hors ligne

#7 Le 28/04/2006, à 09:27

Bastes

Re : [résollu] * Starting Samba daemons.. [fail]

Je regarde...

Alors, la sortie de testparm semble bonne :

Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
        security = SHARE
        obey pam restrictions = Yes
        passdb backend = tdbsam, guest
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d
        invalid users = root

[homes]
        comment = Home Directories
        create mask = 0700
        directory mask = 0700
        browseable = No

[printers]
        comment = All Printers
        path = /tmp
        create mask = 0700
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

Pour les logs j'ai un peu du mal à comprendre ce qui se dit -ou plutôt je ne comprend quasiment rien de ce qui se dit-.

log.smbd :

[2006/04/27 11:36:07, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 11:36:07, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 11:36:07, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 11:57:40, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 11:57:40, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:04:28, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 12:04:28, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:04:28, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:06:15, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 12:06:15, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:06:15, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:06:15, 1] auth/auth_util.c:make_server_info_sam(840)
  User pcguest in passdb, but getpwnam() fails!
[2006/04/27 12:14:40, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 12:14:40, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:14:40, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:14:40, 1] auth/auth_util.c:make_server_info_sam(840)
  User pcguest in passdb, but getpwnam() fails!
[2006/04/27 12:14:53, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 12:14:53, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:14:53, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:14:53, 1] auth/auth_util.c:make_server_info_sam(840)
  User pcguest in passdb, but getpwnam() fails!
[2006/04/27 12:15:21, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 12:15:21, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:15:21, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:15:21, 1] auth/auth_util.c:make_server_info_sam(840)
  User pcguest in passdb, but getpwnam() fails!
[2006/04/27 12:16:35, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 12:16:35, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:16:35, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:16:35, 1] auth/auth_util.c:make_server_info_sam(840)
  User pcguest in passdb, but getpwnam() fails!
[2006/04/27 12:18:38, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 12:18:38, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:18:38, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:18:38, 1] auth/auth_util.c:make_server_info_sam(840)
  User pcguest in passdb, but getpwnam() fails!
[2006/04/27 12:18:48, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 12:18:48, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:18:48, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:18:48, 1] auth/auth_util.c:make_server_info_sam(840)
  User pcguest in passdb, but getpwnam() fails!
[2006/04/27 12:36:29, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 12:36:29, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:36:29, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:36:29, 1] auth/auth_util.c:make_server_info_sam(840)
  User pcguest in passdb, but getpwnam() fails!
[2006/04/27 12:40:35, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 12:40:35, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:40:35, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:40:35, 1] auth/auth_util.c:make_server_info_sam(840)
  User pcguest in passdb, but getpwnam() fails!
[2006/04/27 12:47:00, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 12:47:00, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:47:00, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 12:47:00, 1] auth/auth_util.c:make_server_info_sam(840)
  User pcguest in passdb, but getpwnam() fails!
[2006/04/27 13:56:59, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/27 13:56:59, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 13:56:59, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/27 13:56:59, 1] auth/auth_util.c:make_server_info_sam(840)
  User pcguest in passdb, but getpwnam() fails!
[2006/04/28 09:10:32, 0] smbd/server.c:main(798)
  smbd version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[2006/04/28 09:10:32, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/28 09:10:32, 0] printing/pcap.c:pcap_cache_reload(149)
  Unable to open printcap file /etc/printcap for read!
[2006/04/28 09:10:32, 1] auth/auth_util.c:make_server_info_sam(840)
  User pcguest in passdb, but getpwnam() fails!

log.nmbd :

[2006/04/27 11:36:07, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2006/04/27 11:41:54, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  
  Samba name server YAVIN4 is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.66
  
  *****
[2006/04/27 12:04:24, 0] nmbd/nmbd.c:terminate(56)
  Got SIGTERM: going down...
[2006/04/27 12:04:28, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2006/04/27 12:06:12, 0] nmbd/nmbd.c:terminate(56)
  Got SIGTERM: going down...
[2006/04/27 12:06:15, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2006/04/27 12:07:02, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  
  Samba name server YAVIN4 is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.66
  
  *****
[2006/04/27 12:14:37, 0] nmbd/nmbd.c:terminate(56)
  Got SIGTERM: going down...
[2006/04/27 12:14:40, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2006/04/27 12:14:47, 0] nmbd/nmbd.c:terminate(56)
  Got SIGTERM: going down...
[2006/04/27 12:14:53, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2006/04/27 12:18:41, 0] nmbd/nmbd.c:terminate(56)
  Got SIGTERM: going down...
[2006/04/27 12:18:48, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2006/04/27 12:24:36, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  
  Samba name server YAVIN4 is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.66
  
  *****
[2006/04/27 12:34:55, 0] nmbd/nmbd.c:terminate(56)
  Got SIGTERM: going down...
[2006/04/27 12:36:28, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2006/04/27 12:40:30, 0] nmbd/nmbd.c:terminate(56)
  Got SIGTERM: going down...
[2006/04/27 12:40:35, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2006/04/27 12:46:17, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  
  Samba name server YAVIN4 is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.66
  
  *****
[2006/04/27 12:46:39, 0] nmbd/nmbd.c:terminate(56)
  Got SIGTERM: going down...
[2006/04/27 12:47:00, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2006/04/27 12:52:45, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  
  Samba name server YAVIN4 is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.66
  
  *****
[2006/04/27 18:10:26, 0] nmbd/nmbd.c:terminate(56)
  Got SIGTERM: going down...
[2006/04/28 09:10:32, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.14a-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2006/04/28 09:16:17, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  
  Samba name server YAVIN4 is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.66
  
  *****

A noter, j'ai rebooté ma distrib ce matin, et j'ai trouvé "nmbd" actif dans la liste de mes processus (mais rien qui ressemble à samba ou smb). Si ça peut donner plus d'indications.


"'Tell me,' said Moist, 'have you ever heard of something called the Smoking Gnu?'"

Terry Pratchett, Going Postal

Hors ligne

#8 Le 28/04/2006, à 10:25

YBM

Re : [résollu] * Starting Samba daemons.. [fail]

Il semble y avoir un pb avec un utilisateur "pcguest", qui existe dans la base de compte samba mais pas au niveau UNIX, à moins que tu ne saches pourquoi tu veux passer par cet utilisateur pour les accès anonymes des client smb, ajoute :

guest account = nobody

(c'est la valeur par défaut, normalement inutile, mais sait-on jamais)

dans [global]

et fait un :

sudo smbpasswd -x pcguest

en fait ce qui a pu changer dans ta conf c'est la création de cet utilisateur avec smbpasswd alors qu'il n'existe pas dans la base de comptes UNIX. Comme la base de compte Samba n'est pas dans smb.conf (mais dans passwd.tbd ou smbpasswd situés dans /etc/samba), remettre le smb.conf d'origine ne suffit pas. La commande smbpasswd -x ... supprime un utilisateur de la base Samba.

Dernière modification par YBM (Le 28/04/2006, à 11:06)

Hors ligne

#9 Le 28/04/2006, à 11:11

Bastes

Re : [résollu] * Starting Samba daemons.. [fail]

Je teste ça au plus vite.

Merci.


"'Tell me,' said Moist, 'have you ever heard of something called the Smoking Gnu?'"

Terry Pratchett, Going Postal

Hors ligne

#10 Le 28/04/2006, à 11:14

Bastes

Re : [résollu] * Starting Samba daemons.. [fail]

Ca marche, merci beaucoup. smile

Et une grande victoire de l'esprit inerte sur la matière intelligente. tongue

Dernière modification par Bastes (Le 28/04/2006, à 11:51)


"'Tell me,' said Moist, 'have you ever heard of something called the Smoking Gnu?'"

Terry Pratchett, Going Postal

Hors ligne