Salut,
Je viens d'installer Debian Lenny sur un tout nouveau serveur, qui sera notre futur serveur de fichiers.
L'installation s'est bien passée, j'y ai ensuite installé Samba.
Lorsque le serveur redémarre, seul le service nmbd écoute sur mon interface eth0, voici ce que j'ai dans /var/log/samba/log.smbd :
Code :
- [2010/02/24 08:58:06, 0] smbd/server.c:main(1213)
- smbd version 3.2.5 started.
- Copyright Andrew Tridgell and the Samba Team 1992-2008
- [2010/02/24 08:58:06, 0] lib/interface.c:load_interfaces(543)
- WARNING: no network interfaces found
- [2010/02/24 08:58:06, 0] smbd/server.c:open_sockets_smbd(548)
- open_sockets_smbd: No sockets available to bind to.
|
Je suis tombé sur quelques cas similaires sur le Net mais je n'ai trouvé aucune solution.
Voici mon smb.conf :
Code :
- #======================= Global Settings =======================
- [global]
- ## Browsing/Identification ###
- # Change this to the workgroup/NT-domain name your Samba server will part of
- workgroup = DOMAIN
- # server string is the equivalent of the NT Description field
- server string = %h server
- netbios name = server
- # Windows Internet Name Serving Support Section:
- # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
- # wins support = no
- # WINS Server - Tells the NMBD components of Samba to be a WINS Client
- # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
- wins server = x.x.x.x
- # This will prevent nmbd to search for NetBIOS names through DNS.
- dns proxy = no
- # What naming service and in what order should we use to resolve host names
- # to IP addresses
- ; name resolve order = lmhosts host wins bcast
- #### Networking ####
- interfaces = eth0
- bind interfaces only = yes
- #### Debugging/Accounting ####
- # This tells Samba to use a separate log file for each machine
- # that connects
- log file = /var/log/samba/log.%m
- # Cap the size of the individual log files (in KiB).
- max log size = 1000
- # If you want Samba to only log through syslog then set the following
- # parameter to 'yes'.
- # syslog only = no
- # We want Samba to log a minimum amount of information to syslog. Everything
- # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
- # through syslog you should set the following parameter to something higher.
- syslog = 0
- # Do something sensible when Samba crashes: mail the admin a backtrace
- panic action = /usr/share/samba/panic-action %d
- ####### Authentication #######
- security = domain
- # You may wish to use password encryption. See the section on
- # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
- encrypt passwords = true
- # Serveurs que Samba doit interroger pour valider le couple identifiant/mdp fournit par le client
- password server = srvlan srvbrignoles srvtrans srvvallauris
- ########## Printing ##########
- # If you want to automatically load your printer list rather
- # than setting them up individually then you'll need this
- # load printers = yes
- # lpr(ng) printing. You may wish to override the location of the
- # printcap file
- ; printing = bsd
- ; printcap name = /etc/printcap
- # CUPS printing. See also the cupsaddsmb(8) manpage in the
- # cupsys-client package.
- printing = cups
- printcap name = cups
- ############ Misc ############
- # Using the following line enables you to customise your configuration
- # on a per machine basis. The %m gets replaced with the netbios name
- # of the machine that is connecting
- ; include = /home/samba/etc/smb.conf.%m
- socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
- winbind use default domain = Yes
- nt acl support = Yes
- msdfs root = Yes
- # Case par defaut (lower), actif si preserve case est sur No
- # default case = lower
- # Preserve la casse envoyee par le client (Oui par defaut), si Non, default case est utilise
- # preserve case = Yes
- # Sensible a la casse, No par defaut
- # case sensitive = No
- #======================= Share Definitions =======================
- #[homes]
- # comment = Home Directories
- # browseable = no
- # By default, the home directories are exported read-only. Change the
- # next parameter to 'no' if you want to be able to write to them.
- # read only = yes
- # File creation mask is set to 0700 for security reasons. If you want to
- # create files with group=rw permissions, set next parameter to 0775.
- # create mask = 0700
- # Directory creation mask is set to 0700 for security reasons. If you want to
- # create dirs. with group=rw permissions, set next parameter to 0775.
- # directory mask = 0700
- [printers]
- comment = All Printers
- browseable = no
- path = /var/spool/samba
- printable = yes
- guest ok = no
- read only = yes
- create mask = 0700
- # Windows clients look for this share name as a source of downloadable
- # printer drivers
- [print$]
- comment = Printer Drivers
- path = /var/lib/samba/printers
- browseable = yes
- read only = yes
- guest ok = no
- [Temp]
- path = /tmp
- browseable = yes
- writeable = yes
- create mode = 766
- directory mode = 777
- [Tempo]
- path = /data/Bureautique/tempo
- browseable = yes
- writeable = yes
- create mask = 766
- directory mask = 777
- guest ok = yes
- public = yes
|
Un ps aux après le démarrage du serveur :
Code :
- ...
- root 3139 0.0 0.0 63816 2032 ? Ss 09:19 0:00 /usr/sbin/nmbd -D
- root 3151 0.0 0.0 82544 1264 ? S 09:19 0:00 /usr/sbin/smbd -D
- ...
|
Un netstat -laputen :
Code :
- Connexions Internet actives (serveurs et établies)
- Proto Recv-Q Send-Q Adresse locale Adresse distante Etat User Inode PID/Program name
- tcp 0 0 0.0.0.0:3493 0.0.0.0:* LISTEN 0 6903 3223/upsd
- tcp 0 0 0.0.0.0:56743 0.0.0.0:* LISTEN 0 5666 2496/rpc.statd
- tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 5629 2485/portmap
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 6869 3218/sshd
- tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 0 6307 2821/cupsd
- tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 6527 3100/exim4
- tcp 0 0 x.x.x.x:22 x.x.x.x:1737 ESTABLISHED 0 7106 3295/0
- tcp 0 0 x.x.x.x:38002 x.x.x.x:389 ESTABLISHED 0 7103 3118/nscd
- udp 0 0 x.x.x.x:137 0.0.0.0:* 0 7094 3139/nmbd
- udp 0 0 0.0.0.0:137 0.0.0.0:* 0 6613 3139/nmbd
- udp 0 0 x.x.x.x:138 0.0.0.0:* 0 7095 3139/nmbd
- udp 0 0 0.0.0.0:138 0.0.0.0:* 0 6614 3139/nmbd
- udp 0 0 0.0.0.0:33454 0.0.0.0:* 0 5663 2496/rpc.statd
- udp 0 0 0.0.0.0:68 0.0.0.0:* 0 6294 3163/dhclient3
- udp 0 0 0.0.0.0:976 0.0.0.0:* 0 5652 2496/rpc.statd
- udp 0 0 0.0.0.0:56529 0.0.0.0:* 105 6206 2729/avahi-daemon:
- udp 0 0 0.0.0.0:5353 0.0.0.0:* 105 6203 2729/avahi-daemon:
- udp 0 0 0.0.0.0:111 0.0.0.0:* 0 5620 2485/portmap
- udp 0 0 0.0.0.0:631 0.0.0.0:* 0 6311 2821/cupsd
|
Il semblerait que le service smbd soit lancé mais pas correctement, il n'écoute sur aucune interface.
Si je fais un /etc/init.d/samba restart tout rentre dans l'ordre mais bon, le but c'est que tout fonctionne normalement.
Quelle peut être la cause de ce problème ?
Samba qui démarre juste avant que le réseau soit totalement opérationnel ?
Message édité par jaymzwise le 26-02-2010 à 13:33:48