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