At 05:15 PM 2/26/2001, Andrew Holm-Hansen wrote:
>Well... After doing some poking around I have discovered:
>It is not necessary to escape the backslashes as Paul points out.

Correct. This is unnecessary in both the disklist and the /etc/amandapass 
files.

>I'm not a C programmer, but I *think* that sendsize.c has the wrong syntax 
>for
>my particular version of samba.  It does not output the password in the
>correct place in the argument string for smbclient.  I changed this and
>recompiled sendcheck so that the "pass" variable was put in the correct place.
>  At best this is a partially working hack since this does not fix amcheck or
>make the dump work.

smbclient also allows you to specify -U user%passwd

 From the smbclient manpage (2.0.7):

        -U username
               This  specifies the user name that will be used by the 
client to make a connection, assuming your server
               is not a downlevel server that is running a protocol level 
that uses passwords on shares, not  on  user-
               names.
                 [...]
               If the service you are connecting to requires a password, it 
can be supplied using  the  -U  option,  by
               appending  a percent symbol ("%") then the password to 
username.  For example, to attach to a service as
               user "fred" with password "secret", you would specify.

               -U fred%secret

               on the command line. Note that there are no spaces around 
the percent symbol.

               If you specify the password as part of 
username  then  the  -N  option  (suppress  password  prompt)  is
               assumed.

>The problem (again this is speculation) lies in the fact that smbclient 2.0.7
>(the latest version I can find) requires that the arguments fall in this
>order:  smbclient service <password> [options]
>This is different than the order that sendsize.c and selfcheck.c send them in.
>  both send strings like this:  smbclient service [options] and within the 
> code
>it appears to be assumed that -U specifies the password.  In my version of
>smbclient, -U specifies a username.

See above.

>I hate to question the code because everytime I've done that I've been wrong.

And you are again... :-)

>"it must be the library, the library's broken... or maybe it's this trailing
>semi-colon in my code" ;)

Been there so many times....

>Running out of ideas...

My site runs Samba 2.0.7 on Slackware 7 Linux, Amanda 2.4.2p1. Trust me 
(and Paul), use:

//winbox/winshare winuser%passwd windomain

in your /etc/amandapass
(Where windomain is optional.)

If you've removed the extraneous slashes, changed your /etc/amandapass to 
the user%pass format and *still* have problems, let us know.

>Andrew

Cheers,
Darin

Darin Dugan
System Support Specialist
Iowa State University Extension
[EMAIL PROTECTED]
http://www.extension.iastate.edu

Reply via email to