RE: [suse-sles-e] smbclient copy from linux box to windows

From: Black, Alain (ablack_at_bloodsystems.org)
Date: Wed Sep 13 2006 - 19:07:16 CEST


Date: Wed, 13 Sep 2006 10:07:16 -0700
Message-ID: <1066BDF1DAAA8040B54E0B5E270973100D4B28FF@bsimail.bloodsystems.org>
From: "Black, Alain" <ablack@bloodsystems.org>
Subject: RE: [suse-sles-e] smbclient copy from linux box to windows


> Ok, thank you again. I've made some progress, but I am getting output
> that I am not sure what to make of:
>
> p02-dcs13:~ # ./smbput.sh
> Domain=[COREY] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
> smb: \> smb: \> smb: \dell\> smb: \dell\> NT_STATUS_ACCESS_DENIED
> opening remote file \dell\/root/test.txt
> smb: \dell\> p02-dcs13:~ #
>
> I have opened a terminal in my linux laptop, and su - to root
> then I created the following script "smbput.sh" in /root
>
> #!/bin/bash
> /usr/bin/smbclient //192.168.2.101/c matthew -U mshome/corey <<EOF
>
> cd dell
> translate
> put /root/test.txt
> exit
> EOF
>
>
> it looks like the "put" command is confusing the source and
> destination. I want to copy /root/test.txt to c:\dell
>
> What is wrong with the script as I have it?
>
> Peter
>
[Black, Alain]
Try cd'ing into the /root directory before you put the file, or see if
smbclient has an equivalent lcd like ftp does. I think the /'s are
confusing it.

-Alain.

---------------------------------------------------------------------
To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com
For additional commands, e-mail: suse-sles-e-help@suse.com



This archive was generated by hypermail 2.1.7 : Wed Sep 13 2006 - 19:07:33 CEST