Re: questions sur samba et sur cron

Pàgina inicial

Reply to this message
Autor: Nico
Data:  
A: guilde
Assumpte: Re: questions sur samba et sur cron
Olivier Allard-Jacquin a écrit :

>     La syntaxe est :

>
>     smbclient -L //192.168.0.2
> - Sans le "/" final
> - Avec un "-L"

>

Domain=[NICO] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename       Type      Comment
        ---------       ----      -------
  liste de mes partages


session request to 192.168.0.2 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[NICO] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server               Comment
        ---------            -------


        Workgroup            Master
        ---------            -------


Ca m'avance à quoi en fait ?
Parce qu'après j'ai essayé sans le -L et il me met ça :

nico@serveur:~$ smbclient //192.168.0.2

\\192.168.0.2: Not enough '\' characters in service
Usage: [-?|--help] [--usage] [-R|--name-resolve NAME-RESOLVE-ORDER]
        [-M|--message HOST] [-I|--ip-address IP] [-E|--stderr] 
[-L|--list HOST]
        [-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar 
<c|x>IXFqgbNan]
        [-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES]
        [-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [-O|--socket-options SOCKETOPTIONS]
        [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
        [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] 
[-k|--kerberos]
        [-A|--authentication-file FILE] [-S|--signing on|off|required]
        [-P|--machine-pass] service <password>


sinon si je fais ça :
smbclient //192.168.0.2/

J'obtient :
Password:
Domain=[NICO] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME


Je pige pas :(