amrestore of a pc with smbclient

Andy Smith abs at
Fri Feb 5 15:03:00 GMT 1999

On Sat, Jan 30, 1999 at 05:13:26AM +1100, Andy Smith wrote:
> I've been having a discussion over in the amanda user group about this
> problem, it would appear that smbclient is failing to read correctly
> from stdin (in this case a pipe from amrestore).  This smbclient is the

Wasn't related to stdin at all...

> latest cvs version from the head branch, I haven't tried it yet with
> the 2.0.0 release, so I haven't at this stage reported it to samba-bugs.

... on either 2.0.0 or 2.1.0-prealpha, the results are the same :-

# smbclient '\\d2767\c$' XXXXXX -d0 -U administrator -W d2767 -Tx /export/tmp/backup.tar ./tmp/ntconfig.POL

Added interface ip=???.???.??.?? bcast=???.???.??.??? nmask=
restore tar file \tmp\ntconfig.POL of size 36864 bytes
checksums don't match 0 1514
abandoning restore, -1 from read tar header

# ls -l /export/tmp/backup.tar 
-rw-r--r--   1 abs      dev      163949056 Feb  5 09:57 /export/tmp/backup.tar

The file >is< successfully restored and the tarfile /export/tmp/backup.tar does
extract successfully without error using gnutar on the tape server.  Looks like
a bug in 2.0.0 (which happens to be propagated in 2.1.0-prealpha) so I am
reporting it to samba-bugs at

Please let me know if I can provide any further information.
  _          __         Maunsell Ltd, IT Unit    Tel  : 0181-663-6565
 /_|   _/   (  _  '_//  160 Croydon Road,        Fax  : 0181-663-6723
(  |/)(/(/ __)//)/ //)  Beckenham, Kent BR3 4DE  Email: abs at
        /               England.                 -or- abs at

More information about the samba-ntdom mailing list