[Samba] Tar Failures Using smbclient from Samba 3.0.0beta2
Steve Waltner
swaltner at lsil.com
Fri Jul 11 20:40:02 GMT 2003
I was trying to improve the performance of BackupPC
http://backuppc.sourceforge.net/, which uses smbclient to connect to
Windows systems to backup Windows desktop systems. I'm currently
running Samba 2.2.8a on a fairly beefy Solaris 9 system and only
getting 200-700 KB/sec from the Windows clients. The 700 KB/sec is when
I connect to a dual-Athalon 2600+ Win2K system attached to the network
with Gigabit Ethernet. To make a long story short, I set the system up
to use smbclient 3.0.0beta2 and now get a syntax error when BackupPC
starts the backups. Here is the command syntax it is using:
smbclient \\\\client1\\C\$ -I 192.168.1.1 -U backuppc -E -N -d 1 -c
tarmode\ full -Tc -
it appears as though BackupPC loads the user password into the PASSWD
environment variable to login without password prompts. When I switch
smbclient from 2.2.8a to 3.0.0beta2, I get the following error message
in the BackupPC logs:
===========================
Error opening local file \\client1\C$ - Permission denied
Usage: [-?EVNk] [--usage] [-R NAME-RESOLVE-ORDER] [-M HOST] [-I IP] [-L
HOST]
[-t CODE] [-m LEVEL] [-T <c|x>IXFqgbNan] [-D DIR] [-c ARG] [-b
BYTES]
[-p PORT] [-d DEBUGLEVEL] [-s CONFIGFILE] [-l LOGFILEBASE]
[-O SOCKETOPTIONS] [-n NETBIOSNAME] [-W WORKGROUP] [-i SCOPE]
[-U USERNAME] [-A FILE] service <password>
===========================
The man page for smbclient 3.0.0beta2 appears to be unchanged from the
2.x releases, so I'm a little at a loss as to what to do. I tried
rearranging the arguments a little:
===========================
smbclient -I 192.168.1.1 -U backuppc -E -N -d 1 \\\\client1\\C\$
gets me connected to the Windows system and left at the "smb: \>" prompt
===========================
===========================
smbclient -I 192.168.1.1 -U backuppc -E -N -d 1 -c tarmode\ full
\\\\client1\\C\$
spits out "tarmode is now full, system, hidden, noreset, verbose" and
then exits
===========================
===========================
smbclient -I 192.168.1.1 -U backuppc -E -N -d 1 -c tarmode\ inc -Tc -
\\\\client1\\C\$
spits out:
tarmode is now full, system, hidden, noreset, verbose
NT_STATUS_NO_SUCH_FILE listing \192.168.1.1
NT_STATUS_NO_SUCH_FILE listing \-U
NT_STATUS_NO_SUCH_FILE listing \backuppc
NT_STATUS_NO_SUCH_FILE listing \-E
NT_STATUS_NO_SUCH_FILE listing \-N
NT_STATUS_NO_SUCH_FILE listing \-d
NT_STATUS_NO_SUCH_FILE listing \1
NT_STATUS_NO_SUCH_FILE listing \-c
NT_STATUS_NO_SUCH_FILE listing \tarmode inc
NT_STATUS_NO_SUCH_FILE listing \-Tc
NT_STATUS_OBJECT_NAME_NOT_FOUND listing \client1\C$
tar: dumped 0 files and directories
Total bytes written: 0
===========================
It appears as though smbclient has broken argument parsing, as well as
having an out of date man page. Any ideas on what I should try?
Steve
More information about the samba
mailing list