MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Thu Feb 7 07:57:08 GMT 2002

My money is on your perl script - sounds like you are not getting the 
parameters you THINK you are getting to the system or whatever other 
method you are using in perl to execute this command.
-----Original Message-----
From: Brian [mailto:batman at thundermail.com]
Sent: Thursday, February 07, 2002 10:45 AM
To: samba at lists.samba.org
Subject: [Samba] SMBCLIENT and PERL

I am trying to execute a command to copy a file from my Linux box to my
Windows 2K box in a perl script.

My problem is that when I use the command:

smbclient //thor/w-drive -A credentials -c "cd temp;lcd /home/test;put
testfile.txt testfile.txt"

from either a shell script or command line, it works, but in a perl script,
I get:

added interface ip= bcast= nmask=
added interface ip= bcast= nmask=
session setup failed: ERRDOS - ERRnoaccess (Access denied.)

Try as I might (using -U instead of -A, using env variables of PASSWD, etc)
I can NOT get that file to copy from a perl script. I always get the Access
denied error. From what I have been seeing, when run from perl, it looks
like it wants to connect anonymously no matter what parameters I set.

Any ideas?

Brian Andrus

To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list