Pagina 1 di 1

Strano errore netstat o samba...

Inviato: lun 3 ago 2009, 17:16
da andy-x
Salve a tutti
Sto installando una Slack 12.2 su un server HP. Ho notato che riconfigurando Samba come avevo sul precedente server che montava una 12.1
ho dei problemi sul funzionamento della rete.

Questo e' l'errore che appare dando un:

Codice: Seleziona tutto

netstat -ta

Codice: Seleziona tutto

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:swat                  *:*                     LISTEN
tcp        0      0 *:time                  *:*                     LISTEN
tcp        0      0 *:submission            *:*                     LISTEN
tcp        0      0 *:pop3                  *:*                     LISTEN
tcp        0      0 *:x11                   *:*                     LISTEN
tcp        0      0 *:auth                  *:*                     LISTEN
tcp        0      0 *:ftp                   *:*                     LISTEN
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp        0      0 localhost:ipp           *:*                     LISTEN
tcp        0      0 *:telnet                *:*                     LISTEN
tcp        0      0 *:smtp                  *:*                     LISTEN
tcp6       0      0 [::]:5800               [::]:*                  LISTEN
tcp6       0      0 [::]:netbios-ssn        [::]:*                  LISTEN
tcp6       0      0 [::]:5900               [::]:*                  LISTEN
tcp6       0      0 [::]:x11                [::]:*                  LISTEN
tcp6       0      0 [::]:http               [::]:*                  LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
tcp6       0      0 [::]:microsoft-ds       [::]:*                  LISTEN
getnameinfo failed
tcp6       0      0 proliant.f:microsoft-ds [UNKNOWN]:adapt-sna     ESTABLISHED
e' quel getnameinfo failed che mi preoccupa e appare dopo un accesso ad una risorsa Samba.
infatti facendo un smbstatus questa e' la risposta:

Codice: Seleziona tutto

ERROR: Failed to initialise messages database: Permission denied
messaging_tdb_init failed: NT_STATUS_ACCESS_DENIED

Samba version 3.2.5
PID     Username      Group         Machine
-------------------------------------------------------------------
3462      andy-x        users         andy-x       (::ffff:192.168.100.11)

Service      pid     machine       Connected at
-------------------------------------------------------
IPC$         3462   andy-x        Mon Aug  3 15:17:22 2009
andy-x       3462   andy-x        Mon Aug  3 15:17:29 2009

No locked files
anche andando a vedere con swat il smb.conf mi ritrovo questo:

Codice: Seleziona tutto

# Samba config file created using SWAT
# from UNKNOWN (?? ???t??(???_|??t??????<??8??h??? ·?t?????????? ?????? )
# Date: 2009/08/03 16:09:58

[global]
        server string = Samba Server
        log file = /var/log/samba.%m
        max log size = 50
        local master = No
        domain master = No
        dns proxy = No
        ldap ssl = no

[homes]
        comment = directory personali
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = N
Sembra che i pc windows non passino il proprio IP o che i servizi samba non lo leggano.
Sul vecchio server c'era Samba 3.0.28a e sulla 12.2 c'e' la 3.2.5.

Che ne pensate?

Re: Strano errore netstat o samba...

Inviato: lun 3 ago 2009, 21:20
da slux

Re: Strano errore netstat o samba...

Inviato: mar 4 ago 2009, 6:57
da andy-x
A me l'errore lo da' anche da ROOT... :cry:

Re: Strano errore netstat o samba...

Inviato: mar 4 ago 2009, 19:00
da slux
Ma ti riferisci all'errore di netstat?
Quello succede perchè hai abilitato nel kernel IPV6 e IPV4 e linux non permette che la stessa porta sia usata sia in IPV4 e IPV6.
Ricompila il kernel disattivando IPV6 e risolvi.

Per l'errore sul "messages database", facci vedere i permessi che hai in /var/run/samba/messages.tdb

Re: Strano errore netstat o samba...

Inviato: gio 6 ago 2009, 8:23
da andy-x
Grazie Slux. Risolto tutti i problemi.
Ricompilato il kernel senza supporto IPV6.... netstat perfettamente funzionante!
Cambiato i permessi da 600 a 666 a /var/cache/samba/messages.tdb e tutto e' perfetto.

Ora funziona tutto a meraviglia... lo piazzo al suo posto e posso andare in ferie.... :D :D