JSCH (JCRAFT) client having trouble stowing MVS dataset..

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
tombuch
Posts: 14
Joined: Tue Aug 10, 2010 7:02 am

JSCH (JCRAFT) client having trouble stowing MVS dataset..

Post by tombuch »

Support,

The user is using the JSCH (JCRAFT) SSH client...

The user is specifying the following dataset in quotes because that is the requirement of JSCH: "//D.UTT.C4300.EXED.UP" .... When he tries to put it on our system we see the following error:

ICH408I USER(USER ) GROUP(USERG ) NAME(UP FTP USER )
/D.UTT.C4300.EXED.UP
CL(DIRACC ) FID(00000001000000010000000000000000)
INSUFFICIENT AUTHORITY TO OPEN
ACCESS INTENT(-W-) ACCESS ALLOWED(OTHER R-X)
EFFECTIVE UID(0656712514) EFFECTIVE GID(0545401097)

I have uncommented the following line out in: sftp-server.rc

export SFTP_ZOS_INITIAL_DIR=//

And then I have him specify: "D.UTT.C4300.EXED.UP" ...

But then I get the following:

ICH408I USER(USER ) GROUP(USERG ) NAME(UP FTP USER )
USER.D.UTT.C4300.EXED.UP CL(DATASET ) VOL(*BLANK)
DEFINE - RESOURCE NOT PROTECTED

The server is trying to create a dataset with the user as the high level qualifyer...

Is there a work around for this?

Thank you,

Tom Buchwalter
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

It appears that this client (probably not JCRAFT, but maybe the Java code using JCRAFT) is reducing double slashes to a single slash.

The workaround for this is to use "/-/" instead of "//".

So, try: JSCH: "/-/D.UTT.C4300.EXED.UP"
tombuch
Posts: 14
Joined: Tue Aug 10, 2010 7:02 am

Post by tombuch »

That was it.... Thank you!
Post Reply