You can enter this criteria into the .netrc in addition to script variables.
FTP should pull the username and password when it matches the hostname in your 
ftp statement to the hostname in the .netrc file.

Permission to read that file should be restricted to the owner only.



-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On Behalf Of Alan 
Altmark
Sent: Friday, August 30, 2013 2:03 PM
To: [email protected]
Subject: Re: Bash script for FTP to mainframe

On Friday, 08/30/2013 at 01:37 EDT, Malcolm Beattie <[email protected]>
wrote:
> So I wonder if there may have been a slash character in your password?
> Then the z/OS ftp server interprets a slash as an implicit
> logon-and-change-password request which is failing.
> I'm mildly surprised it would have decided to check the equality of
> the two new passwords (and return the error) before verifying that the
> actual password (to the left of the first slash) was valid.

Same issue as "user pass".   The comparison of "new/new" is a convention
of the UI, not of the underlying system authentication interface
(RACROUTE) which only allows a password change in the context of 
authentication.  So the server is validating "new" before it calls
  RACROUTE REQUEST=VERIFY,USERID=@userid,
                          PASSWRD=@old,
                          NEWPASS=@new

Ever since the invention of copy/paste, I have found "re-enter new password for 
confirmation" to be unnecessary.  I first type my new password into my private 
pw database.  Once there, I then copy/paste it
into whatever field is asking for it.   The only time it's really
necessary when you know the UI is isolated from any such capability.  I.e.
the HMC or a REAL 3270. (You can tell by looking for DDM reply indicating 
support for 3270 file transfer.)

Alan Altmark

Senior Managing z/VM and Linux Consultant IBM System Lab Services and Training 
ibm.com/systems/services/labservices
office: 607.429.3323
mobile; 607.321.7556
[email protected]
IBM Endicott

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit http://wiki.linuxvm.org/

If you are not the addressee, please inform us immediately that you have 
received this e-mail by mistake, and delete it. We thank you for your support.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to