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

Re: SAMBA PDC - une lueur d'espoir !



> Bonne espoir !
> lorsque je tape :
> \\192.168.10.1\atelier
> ou \\192.168.10.1\public
>
> j'ai une fenêtre qui me demande mon login et passwd
> donc je rentre root et son passwd
> Mais je ne parviens pas à me connecter
> Et dans mon voisinage réseau, je vois bien mon serveur, mais je ne peux
> pas y  entrer, non accessible toujours
>
> Mon fichier smb.conf après réinstallation
> #======================= Global Settings =======================
>
> [global]
> netbios name = SRVBG
> workgroup = AGENCE
>   server string = %h server
> ;   wins server = no
> ;   wins server = w.x.y.z
>   dns proxy = no
>
>   log file = /var/log/samba/log.%m
>
>   max log size = 1000
>
>   syslog = 0
>
>   panic action = /usr/share/samba/panic-action %d
> time server = yes
> name resolve order = hosts wins bcast
>
>
> ####### Authentication #######
>   security = user
>   encrypt passwords = true
>
>   passdb backend = tdbsam
>   obey pam restrictions = yes
>
>   guest account = nobody
>   invalid users = root
>   unix password sync = no
>
>   passwd program = /usr/bin/passwd %u
>   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
> *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
>
> ########## Domains ###########
>
> domain master = yes
> local master = yes
> preferred master = yes
> domain logons = yes
>
> logon script = logon.bat
> logon home = \\%N\%U
>
> ;   logon path = \\%N\profiles\%U
> # Another common choice is storing the profile in the user's home
> directory
> ;   logon path = \\%N\%U\profile
> ;   logon drive = H:
> ; add user script = /usr/sbin/adduser --quiet --disabled-password
> --gecos "" %u
>
>   socket options = TCP_NODELAY
>
> #======================= Share Definitions =======================
>
> [homes]
>   comment = Home Directories
>   browseable = yes
>   writable = yes
>   create mask = 0755
>   directory mask = 0755
>   valid users = %S
>
> [netlogon]
>   comment = Network Logon Service
>   path = /home/netlogon
>   guest ok = yes
>   writable = no
>   share modes = no
>
>
> [public]
> comment = Repertoire Public
> guest ok = yes
> browseable = no
> path = /home/public
> valid users = @atelier @secretaire
> admin users = annesophie
> write list = annesophie
> read list = @secretaire
>
> [atelier]
> browseable = no
> valid users = @atelier
> path = /home/atelier
> admin users = annesophie
>
> [secretaire]
> browseable = no
> valid users = @atelier @secretaire
> path = /home/secretaire
> read list = @atelier @secretaire
> admin users = @atelier @secretaire
>
> ;[profiles]
> ;   comment = Users profiles
> ;   path = /home/samba/profiles
> ;   guest ok = no
> ;   browseable = no
> ;   create mask = 0600
> ;   directory mask = 0700
>
> [printers]
>   comment = All Printers
>   browseable = no
>   path = /var/spool/samba
>   printable = yes
>   public = no
>   writable = no
>   create mode = 0700
>
> [print$]
>   comment = Printer Drivers
>   path = /var/lib/samba/printers
>   browseable = yes
>   read only = yes
>   guest ok = no
>
>
>
>
>
>>>>>> 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 ?
>>
>>
>
>
> --
> Lisez la FAQ de la liste avant de poser une question :
> http://wiki.debian.org/DebFrFrenchLists
> Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
> "Reply-To:"
>
> To UNSUBSCRIBE, email to debian-user-french-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>

Sophie, observez attentivement le contenu du fichier smbd.conf
:-( Vous y verrez ceci :

...
invalid users = root
...


Reply to: