Re: Configuration for Windows PC client
2005-10-10 15:30:24
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
Usage: [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
[-R|--name-resolve NAME-RESOLVE-ORDER]
[-M|--message HOST] [-I|--ip-address IP] [-E|--stderr]
[-L|--list HOST]
[-t|--terminal CODE] [-m|--max-protocol LEVEL] [-T|--tar
<c|x>IXFqgbNan]
[-D|--directory DIR] [-c|--command STRING] [-b|--send-buffer BYTES]
[-p|--port PORT] [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
[-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
[-V|--version] [-O|--socket-options SOCKETOPTIONS]
[-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
[-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass]
[-k|--kerberos]
[-A|--authentication-file FILE] [-S|--signing on|off|required]
[-P|--machine-pass] service <password>
-bash-3.00$
... 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
Domain=[GANDALF] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
-bash-3.00$
Shouldn't it be displaying output for Server and Workgroup?
--
Of course, this being Perl, we could always take both approaches. :-)
-- Larry Wall in <199709021744.KAA12428 AT wall DOT org>
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: Configuration for Windows PC client, (continued)
- Re: Configuration for Windows PC client, Chris Jones
- Re: Configuration for Windows PC client, Stefan G. Weichinger
- Re: Configuration for Windows PC client,
Chris Jones <=
- Re: Configuration for Windows PC client, Matt Hyclak
- Re: Configuration for Windows PC client, Stefan G. Weichinger
- Re: Configuration for Windows PC client, Chris Jones
- Re: Configuration for Windows PC client, Stefan G. Weichinger
- Re: Configuration for Windows PC client, Chris Jones
- Re: Configuration for Windows PC client, Jon LaBadie
- Re: Configuration for Windows PC client, Chris Jones
- Re: Configuration for Windows PC client, Chris Jones
- Re: Configuration for Windows PC client, Stefan G. Weichinger
- Re: Configuration for Windows PC client, Jon LaBadie
|
|
|