× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



There's a difference between being sign on as a particular user at a
windows PC and running a command remotely at a given PC with a particular
user's creditals.

So yeah doesn't surprise me....

You might be able to get it to work if you configure the SSH server on the
windows PC to run under a specific user rather than the local system
account it is probably using.

Charles


On Tue, Oct 8, 2019 at 12:46 PM Rob Berendt <rob@xxxxxxxxx> wrote:

I can do the following:
Display Job Schedule Entry Details
Command . . . . . . . . . . . : QSH CMD('ssh -T -i .ssh/id_rsa_user
ADOPT@as2edi01 "\users\adopt\test2.bat"')
Works great.
Contents of test2.bat is
copy "C:\users\adopt\trash\test1.txt" "C:\users\adopt\trash\test2.txt"
However, if I change it to
copy "\\myibmi\myshare\mydirectory\myfile.txt"
"C:\users\adopt\trash\test2.txt"
It fails due to an authorization failure.
From the DOS command prompt on that PC I can do
copy \\myibmi\myshare\mydirectory\myfile.txt C:\users\adopt\trash\test2.txt
signed on as that same user.

Are remote clients not allowed to access the same shares that a local user
can?

Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.