RE: Samba/Win2k/RH7.0/Amanda

2001-02-26 Thread Darin Dugan

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  [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




RE: Samba/Win2k/RH7.0/Amanda

2001-02-26 Thread Andrew Holm-Hansen

I apologize, I overlooked the docs/SAMBA!

Thank you for taking the time to reply to a documented change.  And thank you 
for doing it in such a timely manner (I was about to start hacking through 
code as a last resort).  You have probably prevented me from aiming at my 
foot.

Thanks again,

Andrew

>= Original Message From Todd Pfaff <[EMAIL PROTECTED]> =
>the syntax of /etc/amandapass has changed.  i changed it in my patch for
>amanda-2.4.1p1 and this change was included in 2.4.2.  the format of
>amandapass should be:
>
>//smb-host/sharename username%password
>
>eg.
>
>//somepc/c$ backup%secret
>
>this is clearly indicated in the docs/SAMBA file.
>
>you can use the regular expression * to match any sharename.
>this feature does not seem to be documented in the docs/SAMBA file.
>eg.
>
>* backup%secret
>
>the only expression that works is *.
>(because i was lazy when i wrote this patch :-)
>
>On Mon, 26 Feb 2001, Holm-Hansen wrote:
>
>> Thanks for the help.  I have found that amdump is trying to run smbclient, 
but
>> is not supplying a password (I have one in /etc/amandapass).  I also found
>> that it was not handling the '/'s as I had expected (so I changed it to
>> "win2kbox//C$" in my disklist).  This still has not fixed the problem 
as
>> it is trying to execute this line:
>>
>> smbclient win2kbox\\C$ -d 0 -U amanda -E -c archive 0;recurse;du
>>
>> which prompts for a password.
>> when it should be trying to execute this line:
>>
>> smbclient win2kbox\\C$ amandapassword -d 0 -U amanda -E -c archive
>> 0;recurse;du
>>
>> which just goes.
>>
>> For some reason it is not sending the password.  This made me wonder if my
>> /etc/amandapass entries were correct.  I have played around with them, but 
to
>> no avail.  amandapass is as follows:
>>
>> win2kbox//C$ amandapassword
>>
>> (the slashes by the way are correct, I've tried them the other way and they
>> break.  I believe that they have to match the ones in disklist)
>>
>> I'm out of ideas (and it feels like I'm so close!)
>>
>> Andrew
>>
>> >= Original Message From Todd Pfaff <[EMAIL PROTECTED]> =
>> >try this...
>> >
>> >- edit your disklist file and comment out everything except one of the
>> >smbclient backup entries
>> >- run amdump
>> >- look at the debug files in /tmp/amanda/ (i'm not sure which one, maybe
>> >sendbackup.debug, maybe rundump.debug)
>> >
>> >you should see the smbclient command line in there.  try to run that same
>> >command line manually.
>> >
>> >On Mon, 26 Feb 2001, Holm-Hansen wrote:
>> >
>> >> Date: Mon, 26 Feb 2001 14:29:19 -0600
>> >> From: Holm-Hansen <[EMAIL PROTECTED]>
>> >> To: jrj <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>> >> Cc: amanda-users <[EMAIL PROTECTED]>
>> >> Subject: RE: Samba/Win2k/RH7.0/Amanda
>> >>
>> >> smbclient is able to connect via command line and to list the contents 
of
>> the
>> >> w2k box.
>> >>
>> >> amcheck reports that:
>> >>
>> >> ERROR: 192.168.1.10: [PC SHARE //win2kbox/C$ access error: host down or
>> >> invalid password?]
>> >> Client check: 1 host checked in 0.822 seconds, 1 problem found
>> >>
>> >> I checked and rechecked amandapass and my winbox's passwords.  Since I 
can
>> >> smbclient to the winbox with the username amanda and password that I 
have
>> set
>> >> in amandapass I assume that this is not the problem.
>> >>
>> >> the selfcheck.debug file is as follows:
>> >>
>> >> selfcheck: debug 1 pid 22058 ruid 505 euid 505 start time Fri Feb 23
>> 17:07:37
>> >> 2001
>> >> /usr/local/libexec/selfcheck: version 2.4.2p1
>> >> checking disk /usr/local: device /usr/local: OK
>> >> checking disk /u1: device /u1: OK
>> >> checking disk /root: device /root: OK
>> >> checking disk /boot: device /boot: OK
>> >> checking disk /etc: device /etc: OK
>> >> checking disk /home: device /home: OK
>> >> selfcheck: pid 22058 finish time Fri Feb 23 17:07:38 2001
>> >>
>> >> I don't know if it's supposed to list the samba connection here.  Also, 
I
>> can
>> >> use smbmount to mount the win2k partition onto the linux filesystem tree
>> and
>> >> back it up that way.  I don&#x

RE: Samba/Win2k/RH7.0/Amanda

2001-02-26 Thread Andrew Holm-Hansen

Well... After doing some poking around I have discovered:

It is not necessary to escape the backslashes as Paul points out.

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.

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  [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.

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

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

Running out of ideas...

Andrew


>= Original Message From "Bort, Paul" <[EMAIL PROTECTED]> =
>Andrew,
>
>My SAMBA configuration is working with both /etc/amandapass and disklist
>using a small number of forward slashes. You might want to try this in your
>disklist:
>
>linuxbox   //winbox/winshare
>
>And this in your /etc/amandapass:
>
>//winbox/winshare winpass windomain
>
>My guess is that what's happening somewhere in amanda is that your entry in
>disklist is being 'de-escaped' and not matching what's in amandapass. By
>using forward slashes throughout, escape characters become a non-issue.
>
>Good Luck.
>
>Paul Bort
>TMW Systems, Inc.
>
>-Original Message-----
>From: Holm-Hansen [mailto:[EMAIL PROTECTED]]
>Sent: Monday, February 26, 2001 5:24 PM
>To: Todd Pfaff
>Cc: amanda-users; jrj; rcavey
>Subject: RE: Samba/Win2k/RH7.0/Amanda
>
>
>Thanks for the help.  I have found that amdump is trying to run smbclient,
>but
>is not supplying a password (I have one in /etc/amandapass).  I also found
>that it was not handling the '/'s as I had expected (so I changed it to
>"win2kbox//C$" in my disklist).  This still has not fixed the problem as
>
>it is trying to execute this line:
>
>smbclient win2kbox\\C$ -d 0 -U amanda -E -c archive 0;recurse;du
>
>which prompts for a password.
>when it should be trying to execute this line:
>
>smbclient win2kbox\\C$ amandapassword -d 0 -U amanda -E -c archive
>0;recurse;du
>
>which just goes.
>
>For some reason it is not sending the password.  This made me wonder if my
>/etc/amandapass entries were correct.  I have played around with them, but
>to
>no avail.  amandapass is as follows:
>
>win2kbox//C$ amandapassword
>
>(the slashes by the way are correct, I've tried them the other way and they
>break.  I believe that they have to match the ones in disklist)
>
>I'm out of ideas (and it feels like I'm so close!)
>
>Andrew
>
>>= Original Message From Todd Pfaff <[EMAIL PROTECTED]> =
>>try this...
>>
>>- edit your disklist file and comment out everything except one of the
>>smbclient backup entries
>>- run amdump
>>- look at the debug files in /tmp/amanda/ (i'm not sure which one, maybe
>>sendbackup.debug, maybe rundump.debug)
>>
>>you should see the smbclient command line in there.  try to run that same
>>command line manually.
>>
>>On Mon, 26 Feb 2001, Holm-Hansen wrote:
>>
>>> Date: Mon, 26 Feb 2001 14:29:19 -0600
>>> From: Holm-Hansen <[EMAIL PROTECTED]>
>>> To: jrj <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>>> Cc: amanda-users <[EMAIL PROTECTED]>
>>> Subject: RE: Samba/Win2k/RH7.0/Amanda
>>>
>>> smbclient is able to connect via command line and to list the contents of
>
>the
>>> w2k box.
>>>
>>> amcheck reports that:
>>>
>>> ERROR: 192.168.1.10: [PC SHARE //win2kbox/C$ access error: host down or
>>> invalid password?]
>>> Client check: 1 host checked in 0.822 seconds, 1 problem found
>>>
>>> I checked and rechecked amandapass and my winbox's passwords.  Since I
>can
>>> smbclient to the winbox with the username amanda and password that I have
>
>set
>>> in amandapass I assume that this is not the problem.
>>>
>>> the selfcheck.debug file is as follows:
>>>
>>> selfchec

RE: Samba/Win2k/RH7.0/Amanda

2001-02-26 Thread Todd Pfaff

the syntax of /etc/amandapass has changed.  i changed it in my patch for
amanda-2.4.1p1 and this change was included in 2.4.2.  the format of
amandapass should be:

//smb-host/sharename username%password

eg.

//somepc/c$ backup%secret

this is clearly indicated in the docs/SAMBA file.

you can use the regular expression * to match any sharename.
this feature does not seem to be documented in the docs/SAMBA file.
eg.

* backup%secret

the only expression that works is *.
(because i was lazy when i wrote this patch :-)

On Mon, 26 Feb 2001, Holm-Hansen wrote:

> Thanks for the help.  I have found that amdump is trying to run smbclient, but 
> is not supplying a password (I have one in /etc/amandapass).  I also found 
> that it was not handling the '/'s as I had expected (so I changed it to 
> "win2kbox//C$" in my disklist).  This still has not fixed the problem as 
> it is trying to execute this line:
> 
> smbclient win2kbox\\C$ -d 0 -U amanda -E -c archive 0;recurse;du
> 
> which prompts for a password.
> when it should be trying to execute this line:
> 
> smbclient win2kbox\\C$ amandapassword -d 0 -U amanda -E -c archive 
> 0;recurse;du
> 
> which just goes.
> 
> For some reason it is not sending the password.  This made me wonder if my 
> /etc/amandapass entries were correct.  I have played around with them, but to 
> no avail.  amandapass is as follows:
> 
> win2kbox//C$ amandapassword
> 
> (the slashes by the way are correct, I've tried them the other way and they 
> break.  I believe that they have to match the ones in disklist)
> 
> I'm out of ideas (and it feels like I'm so close!)
> 
> Andrew
> 
> >= Original Message From Todd Pfaff <[EMAIL PROTECTED]> =
> >try this...
> >
> >- edit your disklist file and comment out everything except one of the
> >smbclient backup entries
> >- run amdump
> >- look at the debug files in /tmp/amanda/ (i'm not sure which one, maybe
> >sendbackup.debug, maybe rundump.debug)
> >
> >you should see the smbclient command line in there.  try to run that same
> >command line manually.
> >
> >On Mon, 26 Feb 2001, Holm-Hansen wrote:
> >
> >> Date: Mon, 26 Feb 2001 14:29:19 -0600
> >> From: Holm-Hansen <[EMAIL PROTECTED]>
> >> To: jrj <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> >> Cc: amanda-users <[EMAIL PROTECTED]>
> >> Subject: RE: Samba/Win2k/RH7.0/Amanda
> >>
> >> smbclient is able to connect via command line and to list the contents of 
> the
> >> w2k box.
> >>
> >> amcheck reports that:
> >>
> >> ERROR: 192.168.1.10: [PC SHARE //win2kbox/C$ access error: host down or
> >> invalid password?]
> >> Client check: 1 host checked in 0.822 seconds, 1 problem found
> >>
> >> I checked and rechecked amandapass and my winbox's passwords.  Since I can
> >> smbclient to the winbox with the username amanda and password that I have 
> set
> >> in amandapass I assume that this is not the problem.
> >>
> >> the selfcheck.debug file is as follows:
> >>
> >> selfcheck: debug 1 pid 22058 ruid 505 euid 505 start time Fri Feb 23 
> 17:07:37
> >> 2001
> >> /usr/local/libexec/selfcheck: version 2.4.2p1
> >> checking disk /usr/local: device /usr/local: OK
> >> checking disk /u1: device /u1: OK
> >> checking disk /root: device /root: OK
> >> checking disk /boot: device /boot: OK
> >> checking disk /etc: device /etc: OK
> >> checking disk /home: device /home: OK
> >> selfcheck: pid 22058 finish time Fri Feb 23 17:07:38 2001
> >>
> >> I don't know if it's supposed to list the samba connection here.  Also, I 
> can
> >> use smbmount to mount the win2k partition onto the linux filesystem tree 
> and
> >> back it up that way.  I don't know if this is a good solution.  Are there
> >> problems with this?
> >>
> >> Thanks again.
> >>
> >> Andrew
> >>
> >> >= Original Message From [EMAIL PROTECTED] =
> >> >In addition to John
> >> >
> >> >Verify that you can use smbclient via command-line to
> >> >connect and list the contents on the Win2K box.
> >> >
> >> >Snippet:
> >> >Before our NT Admins started using Veritas to backup
> >> >the Windoze machines I tested amanda under a
> >> >multi-domain setup PROD and DEV. I had a problem
> >> >connecting to the SHARE by name //machine/sharename. I
> >

RE: Samba/Win2k/RH7.0/Amanda

2001-02-26 Thread Bort, Paul

Andrew, 

My SAMBA configuration is working with both /etc/amandapass and disklist
using a small number of forward slashes. You might want to try this in your
disklist: 

linuxbox   //winbox/winshare 

And this in your /etc/amandapass: 

//winbox/winshare winpass windomain

My guess is that what's happening somewhere in amanda is that your entry in
disklist is being 'de-escaped' and not matching what's in amandapass. By
using forward slashes throughout, escape characters become a non-issue.

Good Luck. 

Paul Bort 
TMW Systems, Inc. 

-Original Message-
From: Holm-Hansen [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 5:24 PM
To: Todd Pfaff
Cc: amanda-users; jrj; rcavey
Subject: RE: Samba/Win2k/RH7.0/Amanda


Thanks for the help.  I have found that amdump is trying to run smbclient,
but 
is not supplying a password (I have one in /etc/amandapass).  I also found 
that it was not handling the '/'s as I had expected (so I changed it to 
"win2kbox//C$" in my disklist).  This still has not fixed the problem as

it is trying to execute this line:

smbclient win2kbox\\C$ -d 0 -U amanda -E -c archive 0;recurse;du

which prompts for a password.
when it should be trying to execute this line:

smbclient win2kbox\\C$ amandapassword -d 0 -U amanda -E -c archive 
0;recurse;du

which just goes.

For some reason it is not sending the password.  This made me wonder if my 
/etc/amandapass entries were correct.  I have played around with them, but
to 
no avail.  amandapass is as follows:

win2kbox//C$ amandapassword

(the slashes by the way are correct, I've tried them the other way and they 
break.  I believe that they have to match the ones in disklist)

I'm out of ideas (and it feels like I'm so close!)

Andrew

>= Original Message From Todd Pfaff <[EMAIL PROTECTED]> =
>try this...
>
>- edit your disklist file and comment out everything except one of the
>smbclient backup entries
>- run amdump
>- look at the debug files in /tmp/amanda/ (i'm not sure which one, maybe
>sendbackup.debug, maybe rundump.debug)
>
>you should see the smbclient command line in there.  try to run that same
>command line manually.
>
>On Mon, 26 Feb 2001, Holm-Hansen wrote:
>
>> Date: Mon, 26 Feb 2001 14:29:19 -0600
>> From: Holm-Hansen <[EMAIL PROTECTED]>
>> To: jrj <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>> Cc: amanda-users <[EMAIL PROTECTED]>
>> Subject: RE: Samba/Win2k/RH7.0/Amanda
>>
>> smbclient is able to connect via command line and to list the contents of

the
>> w2k box.
>>
>> amcheck reports that:
>>
>> ERROR: 192.168.1.10: [PC SHARE //win2kbox/C$ access error: host down or
>> invalid password?]
>> Client check: 1 host checked in 0.822 seconds, 1 problem found
>>
>> I checked and rechecked amandapass and my winbox's passwords.  Since I
can
>> smbclient to the winbox with the username amanda and password that I have

set
>> in amandapass I assume that this is not the problem.
>>
>> the selfcheck.debug file is as follows:
>>
>> selfcheck: debug 1 pid 22058 ruid 505 euid 505 start time Fri Feb 23 
17:07:37
>> 2001
>> /usr/local/libexec/selfcheck: version 2.4.2p1
>> checking disk /usr/local: device /usr/local: OK
>> checking disk /u1: device /u1: OK
>> checking disk /root: device /root: OK
>> checking disk /boot: device /boot: OK
>> checking disk /etc: device /etc: OK
>> checking disk /home: device /home: OK
>> selfcheck: pid 22058 finish time Fri Feb 23 17:07:38 2001
>>
>> I don't know if it's supposed to list the samba connection here.  Also, I

can
>> use smbmount to mount the win2k partition onto the linux filesystem tree 
and
>> back it up that way.  I don't know if this is a good solution.  Are there
>> problems with this?
>>
>> Thanks again.
>>
>> Andrew
>>
>> >= Original Message From [EMAIL PROTECTED] =
>> >In addition to John
>> >
>> >Verify that you can use smbclient via command-line to
>> >connect and list the contents on the Win2K box.
>> >
>> >Snippet:
>> >Before our NT Admins started using Veritas to backup
>> >the Windoze machines I tested amanda under a
>> >multi-domain setup PROD and DEV. I had a problem
>> >connecting to the SHARE by name //machine/sharename. I
>> >could not authenticate using the DEV amanda -
>> >user:"backup" password:"I forget" or even as
>> >myself(Domain Admin) under the DEV domain in which the
>> >machine was bound and all the permissions seemed OK.
>> >Although under my PROD(Domain Admin) l

RE: Samba/Win2k/RH7.0/Amanda

2001-02-26 Thread Holm-Hansen

Thanks for the help.  I have found that amdump is trying to run smbclient, but 
is not supplying a password (I have one in /etc/amandapass).  I also found 
that it was not handling the '/'s as I had expected (so I changed it to 
"win2kbox//C$" in my disklist).  This still has not fixed the problem as 
it is trying to execute this line:

smbclient win2kbox\\C$ -d 0 -U amanda -E -c archive 0;recurse;du

which prompts for a password.
when it should be trying to execute this line:

smbclient win2kbox\\C$ amandapassword -d 0 -U amanda -E -c archive 
0;recurse;du

which just goes.

For some reason it is not sending the password.  This made me wonder if my 
/etc/amandapass entries were correct.  I have played around with them, but to 
no avail.  amandapass is as follows:

win2kbox//C$ amandapassword

(the slashes by the way are correct, I've tried them the other way and they 
break.  I believe that they have to match the ones in disklist)

I'm out of ideas (and it feels like I'm so close!)

Andrew

>= Original Message From Todd Pfaff <[EMAIL PROTECTED]> =
>try this...
>
>- edit your disklist file and comment out everything except one of the
>smbclient backup entries
>- run amdump
>- look at the debug files in /tmp/amanda/ (i'm not sure which one, maybe
>sendbackup.debug, maybe rundump.debug)
>
>you should see the smbclient command line in there.  try to run that same
>command line manually.
>
>On Mon, 26 Feb 2001, Holm-Hansen wrote:
>
>> Date: Mon, 26 Feb 2001 14:29:19 -0600
>> From: Holm-Hansen <[EMAIL PROTECTED]>
>> To: jrj <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>> Cc: amanda-users <[EMAIL PROTECTED]>
>> Subject: RE: Samba/Win2k/RH7.0/Amanda
>>
>> smbclient is able to connect via command line and to list the contents of 
the
>> w2k box.
>>
>> amcheck reports that:
>>
>> ERROR: 192.168.1.10: [PC SHARE //win2kbox/C$ access error: host down or
>> invalid password?]
>> Client check: 1 host checked in 0.822 seconds, 1 problem found
>>
>> I checked and rechecked amandapass and my winbox's passwords.  Since I can
>> smbclient to the winbox with the username amanda and password that I have 
set
>> in amandapass I assume that this is not the problem.
>>
>> the selfcheck.debug file is as follows:
>>
>> selfcheck: debug 1 pid 22058 ruid 505 euid 505 start time Fri Feb 23 
17:07:37
>> 2001
>> /usr/local/libexec/selfcheck: version 2.4.2p1
>> checking disk /usr/local: device /usr/local: OK
>> checking disk /u1: device /u1: OK
>> checking disk /root: device /root: OK
>> checking disk /boot: device /boot: OK
>> checking disk /etc: device /etc: OK
>> checking disk /home: device /home: OK
>> selfcheck: pid 22058 finish time Fri Feb 23 17:07:38 2001
>>
>> I don't know if it's supposed to list the samba connection here.  Also, I 
can
>> use smbmount to mount the win2k partition onto the linux filesystem tree 
and
>> back it up that way.  I don't know if this is a good solution.  Are there
>> problems with this?
>>
>> Thanks again.
>>
>> Andrew
>>
>> >= Original Message From [EMAIL PROTECTED] =
>> >In addition to John
>> >
>> >Verify that you can use smbclient via command-line to
>> >connect and list the contents on the Win2K box.
>> >
>> >Snippet:
>> >Before our NT Admins started using Veritas to backup
>> >the Windoze machines I tested amanda under a
>> >multi-domain setup PROD and DEV. I had a problem
>> >connecting to the SHARE by name //machine/sharename. I
>> >could not authenticate using the DEV amanda -
>> >user:"backup" password:"I forget" or even as
>> >myself(Domain Admin) under the DEV domain in which the
>> >machine was bound and all the permissions seemed OK.
>> >Although under my PROD(Domain Admin) login I could
>> >connect to the SHARE list the contents.
>> >
>> >In short: Ran out of time to figure it out but if you
>> >get smbclient working command line with the logins for
>> >amanda.. Amanda will work.
>> >
>> >Bob
>> >
>> >
>> >
>> >--- "John R. Jackson" <[EMAIL PROTECTED]>
>> >wrote:
>> >> >I don't know if there are logs elsewhere that
>> >> contain more information about
>> >> >the problem.
>> >>
>> >> What's in /tmp/amanda/selfcheck*debug?
>> >>
>> >> >Andrew
>> >>
>> >> John R. Jackson, Technical Software Specialist,
>> >[EMAIL PROTECTED]
>> >
>> >
>> >__
>> >Do You Yahoo!?
>> >Get email at your own domain with Yahoo! Mail.
>> >http://personal.mail.yahoo.com/
>>
>>
>>
>
>--
>Todd Pfaff \  Email: [EMAIL PROTECTED]
>Computing and Information Services  \ Voice: (905) 525-9140 x22920
>ABB 132  \  FAX: (905) 528-3773
>McMaster University   \
>Hamilton, Ontario, Canada  L8S 4M1 \





RE: Samba/Win2k/RH7.0/Amanda

2001-02-26 Thread Todd Pfaff

try this...

- edit your disklist file and comment out everything except one of the
smbclient backup entries
- run amdump
- look at the debug files in /tmp/amanda/ (i'm not sure which one, maybe
sendbackup.debug, maybe rundump.debug)

you should see the smbclient command line in there.  try to run that same
command line manually.

On Mon, 26 Feb 2001, Holm-Hansen wrote:

> Date: Mon, 26 Feb 2001 14:29:19 -0600
> From: Holm-Hansen <[EMAIL PROTECTED]>
> To: jrj <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Cc: amanda-users <[EMAIL PROTECTED]>
> Subject: RE: Samba/Win2k/RH7.0/Amanda
> 
> smbclient is able to connect via command line and to list the contents of the 
> w2k box.
> 
> amcheck reports that:
> 
> ERROR: 192.168.1.10: [PC SHARE //win2kbox/C$ access error: host down or 
> invalid password?]
> Client check: 1 host checked in 0.822 seconds, 1 problem found
> 
> I checked and rechecked amandapass and my winbox's passwords.  Since I can 
> smbclient to the winbox with the username amanda and password that I have set 
> in amandapass I assume that this is not the problem.
> 
> the selfcheck.debug file is as follows:
> 
> selfcheck: debug 1 pid 22058 ruid 505 euid 505 start time Fri Feb 23 17:07:37 
> 2001
> /usr/local/libexec/selfcheck: version 2.4.2p1
> checking disk /usr/local: device /usr/local: OK
> checking disk /u1: device /u1: OK
> checking disk /root: device /root: OK
> checking disk /boot: device /boot: OK
> checking disk /etc: device /etc: OK
> checking disk /home: device /home: OK
> selfcheck: pid 22058 finish time Fri Feb 23 17:07:38 2001
> 
> I don't know if it's supposed to list the samba connection here.  Also, I can 
> use smbmount to mount the win2k partition onto the linux filesystem tree and 
> back it up that way.  I don't know if this is a good solution.  Are there 
> problems with this?
> 
> Thanks again.
> 
> Andrew
> 
> >= Original Message From [EMAIL PROTECTED] =
> >In addition to John
> >
> >Verify that you can use smbclient via command-line to
> >connect and list the contents on the Win2K box.
> >
> >Snippet:
> >Before our NT Admins started using Veritas to backup
> >the Windoze machines I tested amanda under a
> >multi-domain setup PROD and DEV. I had a problem
> >connecting to the SHARE by name //machine/sharename. I
> >could not authenticate using the DEV amanda -
> >user:"backup" password:"I forget" or even as
> >myself(Domain Admin) under the DEV domain in which the
> >machine was bound and all the permissions seemed OK.
> >Although under my PROD(Domain Admin) login I could
> >connect to the SHARE list the contents.
> >
> >In short: Ran out of time to figure it out but if you
> >get smbclient working command line with the logins for
> >amanda.. Amanda will work.
> >
> >Bob
> >
> >
> >
> >--- "John R. Jackson" <[EMAIL PROTECTED]>
> >wrote:
> >> >I don't know if there are logs elsewhere that
> >> contain more information about
> >> >the problem.
> >>
> >> What's in /tmp/amanda/selfcheck*debug?
> >>
> >> >Andrew
> >>
> >> John R. Jackson, Technical Software Specialist,
> >[EMAIL PROTECTED]
> >
> >
> >__
> >Do You Yahoo!?
> >Get email at your own domain with Yahoo! Mail.
> >http://personal.mail.yahoo.com/
> 
> 
> 

--
Todd Pfaff \  Email: [EMAIL PROTECTED]
Computing and Information Services  \ Voice: (905) 525-9140 x22920
ABB 132  \  FAX: (905) 528-3773
McMaster University   \
Hamilton, Ontario, Canada  L8S 4M1 \




RE: Samba/Win2k/RH7.0/Amanda

2001-02-26 Thread Holm-Hansen

smbclient is able to connect via command line and to list the contents of the 
w2k box.

amcheck reports that:

ERROR: 192.168.1.10: [PC SHARE //win2kbox/C$ access error: host down or 
invalid password?]
Client check: 1 host checked in 0.822 seconds, 1 problem found

I checked and rechecked amandapass and my winbox's passwords.  Since I can 
smbclient to the winbox with the username amanda and password that I have set 
in amandapass I assume that this is not the problem.

the selfcheck.debug file is as follows:

selfcheck: debug 1 pid 22058 ruid 505 euid 505 start time Fri Feb 23 17:07:37 
2001
/usr/local/libexec/selfcheck: version 2.4.2p1
checking disk /usr/local: device /usr/local: OK
checking disk /u1: device /u1: OK
checking disk /root: device /root: OK
checking disk /boot: device /boot: OK
checking disk /etc: device /etc: OK
checking disk /home: device /home: OK
selfcheck: pid 22058 finish time Fri Feb 23 17:07:38 2001

I don't know if it's supposed to list the samba connection here.  Also, I can 
use smbmount to mount the win2k partition onto the linux filesystem tree and 
back it up that way.  I don't know if this is a good solution.  Are there 
problems with this?

Thanks again.

Andrew

>= Original Message From [EMAIL PROTECTED] =
>In addition to John
>
>Verify that you can use smbclient via command-line to
>connect and list the contents on the Win2K box.
>
>Snippet:
>Before our NT Admins started using Veritas to backup
>the Windoze machines I tested amanda under a
>multi-domain setup PROD and DEV. I had a problem
>connecting to the SHARE by name //machine/sharename. I
>could not authenticate using the DEV amanda -
>user:"backup" password:"I forget" or even as
>myself(Domain Admin) under the DEV domain in which the
>machine was bound and all the permissions seemed OK.
>Although under my PROD(Domain Admin) login I could
>connect to the SHARE list the contents.
>
>In short: Ran out of time to figure it out but if you
>get smbclient working command line with the logins for
>amanda.. Amanda will work.
>
>Bob
>
>
>
>--- "John R. Jackson" <[EMAIL PROTECTED]>
>wrote:
>> >I don't know if there are logs elsewhere that
>> contain more information about
>> >the problem.
>>
>> What's in /tmp/amanda/selfcheck*debug?
>>
>> >Andrew
>>
>> John R. Jackson, Technical Software Specialist,
>[EMAIL PROTECTED]
>
>
>__
>Do You Yahoo!?
>Get email at your own domain with Yahoo! Mail.
>http://personal.mail.yahoo.com/





Re: Samba/Win2k/RH7.0/Amanda

2001-02-24 Thread Robert Cavey

In addition to John

Verify that you can use smbclient via command-line to
connect and list the contents on the Win2K box.

Snippet:
Before our NT Admins started using Veritas to backup
the Windoze machines I tested amanda under a
multi-domain setup PROD and DEV. I had a problem
connecting to the SHARE by name //machine/sharename. I
could not authenticate using the DEV amanda -
user:"backup" password:"I forget" or even as
myself(Domain Admin) under the DEV domain in which the
machine was bound and all the permissions seemed OK.
Although under my PROD(Domain Admin) login I could
connect to the SHARE list the contents.

In short: Ran out of time to figure it out but if you
get smbclient working command line with the logins for
amanda.. Amanda will work.

Bob



--- "John R. Jackson" <[EMAIL PROTECTED]>
wrote:
> >I don't know if there are logs elsewhere that
> contain more information about 
> >the problem.
> 
> What's in /tmp/amanda/selfcheck*debug?
> 
> >Andrew
> 
> John R. Jackson, Technical Software Specialist,
[EMAIL PROTECTED]


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: Samba/Win2k/RH7.0/Amanda

2001-02-23 Thread John R. Jackson

>I don't know if there are logs elsewhere that contain more information about 
>the problem.

What's in /tmp/amanda/selfcheck*debug?

>Andrew

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]