[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tr : Re : Re : Re : Re : Re : Re : SAMBA PDC



Anne Sophie a écrit :
Jean-Michel Caricand a écrit :
----- Message transféré ----
De : anne sophie lantz <annesophielantz@yahoo.fr>
À : Debianfr List <debian-user-french@lists.debian.org>
Envoyé le : Samedi, 15 Mars 2008, 9h01mn 13s
Objet : Re : Re : Re : Re : Re : Re : SAMBA PDC

# ps -ax
Warning: bad ps syntax, perhaps a bogus '-'? See
http://procps.sf.net/faq.html
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:01 init [2]
    2 ?        S      0:00 [migration/0]
    3 ?        SN     0:00 [ksoftirqd/0]
    4 ?        S<     0:00 [events/0]
    5 ?        S<     0:00 [khelper]
    6 ?        S<     0:00 [kthread]
    9 ?        S<     0:00 [kblockd/0]
   10 ?        S<     0:00 [kacpid]
   92 ?        S<     0:00 [kseriod]
  128 ?        S      0:00 [pdflush]
  129 ?        S      0:00 [pdflush]
  130 ?        S<     0:00 [kswapd0]
  131 ?        S<     0:00 [aio/0]
  572 ?        S<     0:00 [khubd]
  966 ?        S<     0:00 [kjournald]
 1143 ?        S<s    0:00 udevd --daemon
 1488 ?        S<     0:00 [kpsmoused]
 1679 ?        S<     0:00 [kmirrord]
 1716 ?        S<     0:00 [kjournald]
 1718 ?        S<     0:00 [kjournald]
 1720 ?        S<     0:00 [kjournald]
 1722 ?        S<     0:00 [kjournald]
 1870 ?        Ss     0:00 dhclient3 -pf /var/run/dhclient.eth0.pid -lf
/var/lib
 1909 ?        Ss     0:00 /sbin/portmap
 2146 ?        Ss     0:00 /sbin/syslogd
 2152 ?        Ss     0:00 /sbin/klogd -x
 2224 ?        Ss     0:00 /usr/sbin/acpid -c /etc/acpi/events -s
/var/run/acpid
 2267 ?        Ss     0:00 /usr/sbin/exim4 -bd -q30m
 2279 ?        Ss     0:00 /usr/sbin/inetd
 2286 ?        Ss     0:00 /usr/sbin/nmbd -D
 2310 ?        Ss     0:00 /usr/sbin/sshd
 2332 ?        Ss     0:00 /sbin/rpc.statd
 2342 ?        Ss     0:00 /usr/sbin/atd
 2349 ?        Ss     0:00 /usr/sbin/cron
 2376 tty1     Ss+    0:00 /sbin/getty 38400 tty1
 2377 tty2     Ss+    0:00 /sbin/getty 38400 tty2
 2378 tty3     Ss+    0:00 /sbin/getty 38400 tty3
 2379 tty4     Ss+    0:00 /sbin/getty 38400 tty4
 2386 tty5     Ss+    0:00 /sbin/getty 38400 tty5
 2387 tty6     Ss+    0:00 /sbin/getty 38400 tty6
 2394 ?        Ss     0:00 sshd: root@pts/0
 2396 pts/0    Ss     0:00 -bash
 2512 pts/0    R+     0:00 ps -ax


----- Message d'origine ----
De : Jean-Michel Caricand <jean-michel.caricand@lifc.univ-fcomte.fr>
À : anne sophie lantz <annesophielantz@yahoo.fr>
Cc : Debianfr List <debian-user-french@lists.debian.org>
Envoyé le : Samedi, 15 Mars 2008, 8h57mn 35s
Objet : Re: Re : Re : Re : Re : Re : SAMBA PDC

SRVBG:/mnt# smbclient -L localhost
Error connecting to 127.0.0.1 (Connexion refusée)
Connection to localhost failed

Le serveur Samba ne tourne pas !

# nmap localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2008-03-15 10:35
CET
Interesting ports on localhost (127.0.0.1):
Not shown: 1676 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
25/tcp  open  smtp
111/tcp open  rpcbind
113/tcp open  auth

Nmap finished: 1 IP address (1 host up) scanned in 0.221 seconds


nmap comfirme la remarque précédente. Vous devriez avoir les lignes
suivantes :

139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds

Vérifiez si les services smbd et nmbd sont actifs avec un ps ax.



Comme vous pouvez le constater, le service smbd n'est pas actif. Il y a
donc des erreurs dans votre fichier de configuration. testparm peut vous
aider à les réduire.
Déjà pour le compte mail, je passe par thunderbird ! :)
pour testparm, dans mon fichier smb.conf, j'ai commenté [print] pour le moment
et donc
SRVBG:/usr/src# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[netlogon]"
Processing section "[public]"
Processing section "[homes]"
Processing section "[atelier]"
Processing section "[secretaire]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC

SRVBG:~# nmap localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2008-03-15 11:59 CET
Interesting ports on localhost (127.0.0.1):
Not shown: 1676 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
111/tcp open rpcbind
113/tcp open auth

Nmap finished: 1 IP address (1 host up) scanned in 0.232 seconds

SRVBG:~# /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbdstart-stop-daemon: warning: failed to kill 2291: No such process
.
Starting Samba daemons: nmbd smbd.

SRVBG:~# ps -ax
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
PID TTY STAT TIME COMMAND
1 ? Ss 0:01 init [2]
2 ? S 0:00 [migration/0]
3 ? SN 0:00 [ksoftirqd/0]
4 ? S< 0:00 [events/0]
5 ? S< 0:00 [khelper]
6 ? S< 0:00 [kthread]
9 ? S< 0:00 [kblockd/0]
10 ? S< 0:00 [kacpid]
92 ? S< 0:00 [kseriod]
128 ? S 0:00 [pdflush]
129 ? S 0:00 [pdflush]
130 ? S< 0:00 [kswapd0]
131 ? S< 0:00 [aio/0]
576 ? S< 0:00 [khubd]
968 ? S< 0:00 [kjournald]
1145 ? S<s 0:00 udevd --daemon
1469 ? S< 0:00 [kpsmoused]
1682 ? S< 0:00 [kmirrord]
1719 ? S< 0:00 [kjournald]
1721 ? S< 0:00 [kjournald]
1723 ? S< 0:00 [kjournald]
1725 ? S< 0:00 [kjournald]
1873 ? Ss 0:00 dhclient3 -pf /var/run/dhclient.eth0.pid -lf /var/lib
1912 ? Ss 0:00 /sbin/portmap
2149 ? Ss 0:00 /sbin/syslogd
2155 ? Ss 0:00 /sbin/klogd -x
2227 ? Ss 0:00 /usr/sbin/acpid -c /etc/acpi/events -s /var/run/acpid
2270 ? Ss 0:00 /usr/sbin/exim4 -bd -q30m
2282 ? Ss 0:00 /usr/sbin/inetd
2313 ? Ss 0:00 /usr/sbin/sshd
2335 ? Ss 0:00 /sbin/rpc.statd
2345 ? Ss 0:00 /usr/sbin/atd
2352 ? Ss 0:00 /usr/sbin/cron
2379 tty1 Ss+ 0:00 /sbin/getty 38400 tty1
2381 tty2 Ss+ 0:00 /sbin/getty 38400 tty2
2382 tty3 Ss+ 0:00 /sbin/getty 38400 tty3
2383 tty4 Ss+ 0:00 /sbin/getty 38400 tty4
2384 tty5 Ss+ 0:00 /sbin/getty 38400 tty5
2392 tty6 Ss+ 0:00 /sbin/getty 38400 tty6
2397 ? Ss 0:00 sshd: root@pts/0
2399 pts/0 Ss 0:00 -bash
2424 ? Ss 0:00 /usr/sbin/nmbd -D
2431 pts/0 R+ 0:00 ps -ax
devrais je enlever et reinstaller samba ?



Reply to: