"Stefan G. Weichinger" <[email protected]> writes:

> Am 2018-07-02 um 08:28 schrieb Olivier:
>> Hi,
>> 
>> Since I upgraded to Samba 4, I cannot backyp my Windows machine.
>> 
>> Poking around, the command used by Amanda sendsize is:
>> 
>> Mon Jul  2 00:14:39 2018: thd-0x805422c00: sendsize: Spawning
>>     "/usr/bin/smbclient smbclient "\\\\olivier\\drivec" -d 0 -U backup -E -W
>>     olivier -c "archive 1;recurse;du"" in pipeline
>> 
>> When I try the following command in Samba 3, it works, but not in Samba
>> 4:
>> 
>> smbclient "\\\\olivier\\drivec" -d 0 -U backup -E -W olivier -c "archive
>>      1;recurse;du"
>> 
>> If I use single back-slash or no double-quote in Samba 4, it works.
>> 
>> The error is NT_STATUS_UNSUCCESSFUL
>
> Try the command yourself on the shell and use "-d3" or higher to see the
> debug details.

$ smbclient "\\\\olivier\\drivec" -d 3 -U backup -E -W olivier -c "archive 
1;recurse;du"
lp_load_ex: refreshing parameters
Initialising global parameters
Processing section "[global]"
added interface nfe0 ip=192.41.170.11 bcast=192.41.170.255 netmask=255.255.255.0
added interface nfe1 ip=10.41.170.11 bcast=10.41.170.255 netmask=255.255.255.0
Client started (version 4.6.15).
resolve_lmhosts: Attempting lmhosts lookup for name <0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name <0x20>
resolve_hosts: getaddrinfo failed for name  [hostname nor servname provided, or 
not known]
name_resolve_bcast: Attempting broadcast lookup for name <0x20>
Connection to  failed (Error NT_STATUS_UNSUCCESSFUL)

And the working one:

$ smbclient "\\olivier\drivec" -d 3 -U backup -E -W olivier -c "archive 
1;recurse;du"
lp_load_ex: refreshing parameters
Initialising global parameters
Processing section "[global]"
added interface nfe0 ip=192.41.170.11 bcast=192.41.170.255 netmask=255.255.255.0
added interface nfe1 ip=10.41.170.11 bcast=10.41.170.255 netmask=255.255.255.0
Client started (version 4.6.15).
resolve_lmhosts: Attempting lmhosts lookup for name olivier<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name olivier<0x20>
Connecting to 192.41.170.57 at port 445

Thank ou,

Olivier

-- 

Reply via email to