On Mon, Oct 10, 2005 at 08:20:53PM +0100, Chris Jones wrote: > Stefan G. Weichinger wrote: > > > Chris Jones wrote: > > > >> I have run a test amcheck against one of my windoze boxes, generating > >> the following log (actually in /var/log/amanda):- > >> > >> ----------------------------------------------------------------------------------------------------------- > >> > >> selfcheck: debug 1 pid 11168 ruid 33 euid 33: start at Mon Oct 10 > >> 19:11:52 2005 > >> /usr/lib/amanda/selfcheck: version 2.4.5 > >> selfcheck: time 0.000: checking disk //gandalf/gandalfc > >> selfcheck: time 0.000: spawning /usr/bin/smbclient in pipeline > >> selfcheck: argument list: smbclient \\gandalf\gandalfc -U chris -E -W > >> GANDALF -c quit > >> selfcheck: time 0.038: samba access error: //gandalf/gandalfc: Error > >> connecting to 192.168.0.2 (Permission denied): Connection to gandalf > >> failed: returned 1 > >> selfcheck: time 0.038: pid 11168 finish time Mon Oct 10 19:11:52 2005 > >> ----------------------------------------------------------------------------------------------------------- > >> > > > > > > And what happens if you run this by hand? > > > > smbclient \\gandalf\gandalfc -U chris -E -W GANDALF -c quit > > > > It should ask for a password ... which I am missing here ... > > > Yes. and when the password is supplied, I get a response:- > > -bash-3.00$ smbclient \\gandalf\gandalfc -U chris -E -W GANDALF -c quit > > \gandalfgandalfc: Not enough '\' characters in service
Backslashes on a shell command line have to be quoted. Either the way you did, doubling each backslash, or by enclosing the string in single quotes (ex. '\\gandalf\gandalfc') > ... and when I supply the extra \ chars, I get:- > > -bash-3.00$ smbclient \\\\gandalf\\gandalfc -U chris -E -W GANDALF -c quit > Password: > Domain=[GANDALF] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] > tree connect failed: NT_STATUS_BAD_NETWORK_NAME > -bash-3.00$ > > > Does the share exist? > > > Yes, See below.... > > > What does "smbclient -L gandalf -U chris" tell you? > > -bash-3.00$ smbclient -L gandalf -U chris > Password: > Domain=[GANDALF] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] > > Sharename Type Comment > --------- ---- ------- > Gandalf_OldC Disk Gandalfs Old C Drive > Gandalf_H Disk Gandalfs DVD Drive > Gandalf_C Disk Gandalfs New C > IPC$ IPC Remote IPC > D$ Disk Default share > print$ Disk Printer Drivers > HPOffice Printer HP OfficeJet Pro 1150 C > G$ Disk Default share > DocSetts Disk Documents & Settings > F$ Disk Default share > ADMIN$ Disk Remote Admin > C$ Disk Default share > OJ5500 Printer hp officejet 5500 series > Gandalf_D Disk Gandalfs New D > Gandalf_E Disk Gandalfs New E > OJ5500_Fax Printer hp officejet 5500 series fax If I understand '\\gandalf\gandalfc' correctly you are asking for a share "named" 'gandalfc'. Yet there is no share by that name. -- Jon H. LaBadie [EMAIL PROTECTED] JG Computing 4455 Province Line Road (609) 252-0159 Princeton, NJ 08540-4322 (609) 683-7220 (fax)
