I have a script that uses smbclient - this script updates a tnsnames.ora 
file on the UNIX network as well as several "windows" net locations.... I 
used smbclient to move stuff around after a vi session on the UNIX side... 
I had to rsh to the unix box withthe smbclient, call it, pass the IP, mount 
point, username and pass as well as "work group" - which is the domain (I 
think) on the windows side...

here's the important line from my script....maybe it'll help you?

rsh $SMB_MACHINE "/usr/local/samba/bin/smbclient \\\\\\\\$IP\\\\$MNT 
$PASSWORD -U $USER_NAME -W $WORKGROUP"


On Wed, 13 Aug 2003 11:42:06 -0500, Bob Tanner <tanner at mn-linux.org> wrote:

> On Wednesday 13 August 2003 07:07 am, Jay Kline wrote:l
>> What version of samba?
> samba-2.2.7-3.7.3
>
>> Whave version of windows?
>
> Not sure, I'm working in a linux hostile environment and the IT staff is 
> less then helpful, but nmap shows Windows 2000 Professional, Build 2183 
> (RC3)
>
>> Is there a domain?
>
> Yes.
>
>> Active directory?
>
> Don't know.
>
>> What does smbclient -L machine -Uusername  show?
>
> % smbclient -L hostname -U username
> added interface ip=x.x.x.x bcast=x.x.x.x nmask=x.x.x.x
> added interface ip=x.x.x.x bcast=x.x.x.x nmask=x.x.x.x
> Password:
> session setup failed: NT_STATUS_LOGON_FAILURE
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list