- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP Script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 11:19 PM
09-14-2005 11:19 PM
ftp -niv
ftp> open xxx.xxx.xxx.xxx
Connected to xxx.xxx.xxx.xxx.
220-FTPD1 IBM FTP aa aaaa at aaaa, 11:02:45 on 2005-09-15.
220 Connection will close if idle for more than 15 minutes.
Remote system type is MVS.
ftp> user XXXXX
500 User Exit denies Userid '' from using Command 'USER'.
Login failed.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 11:30 PM
09-14-2005 11:30 PM
Re: FTP Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 11:32 PM
09-14-2005 11:32 PM
Re: FTP Script
ftp -niv
ftp> user root
what u r getting?
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 11:36 PM
09-14-2005 11:36 PM
Re: FTP Script
Also see the /etc/ftpd/ftpaccess file, or even /etc/passwd to see if that user is alowed to login on that machine.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 11:38 PM
09-14-2005 11:38 PM
Re: FTP Script
I don't have an ftpusers file as my HPUX box is the client end of the connection and I don't have any control over the remote (MVS) server. However if I start a "regular" ftp session without -niv then I can connect without any problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 12:09 AM
09-15-2005 12:09 AM
Re: FTP Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 12:09 AM
09-15-2005 12:09 AM
Re: FTP Script
-ni is used for interactive prompting.
ftp -i -nv
user
ls
bye
EOF
Is it working there?
what is your os version?
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 12:17 AM
09-15-2005 12:17 AM
Re: FTP Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 12:33 AM
09-15-2005 12:33 AM
Re: FTP Script
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 12:35 AM
09-15-2005 12:35 AM
SolutionThe remote system is the one generating the error so, unless you know the admin of the MVS box, you're a bit out of luck.
I find it curious that the same commands work from a DG/UX box. There might be some type of security that allows the user@DG/UX to run the command but prohibits anyone else. I'm not familiar with MVS, so I don't know if that's the case or even possible; however, that's what its looking like.
You might try a ~/.netrc file (600 perms, remember) to see if that will enable you to auto-login. If that works, you should be able to run the rest of your script w/o the user/password commands...
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 01:45 AM
09-15-2005 01:45 AM