- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- FTP failing - Passive mode refused
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
Discussions
Discussions
Discussions
Forums
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
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
тАО07-13-2005 11:39 PM
тАО07-13-2005 11:39 PM
The following is the debug information from the ftp (the site specific information has been changed to xx).
Started: Wed Jul 13 16:05:27 EDT 2005
Begin tranfer of file /home/dpsdz93/CS_OUTFILE_20050713160526.dat to rsd
Connected to rsd (XXX.xx.xx.62).
220 rsd.com FTP server (Version wu-2.6.1-23.2) ready.
---> SYST
530 Please login with USER and PASS.
---> USER xyz
331 Password required for dpsdz93.
---> PASS XXXX
230 User xyz logged in. Access restrictions apply.
---> SITE UMASK 000
200 UMASK set to 000 (was 022)
local: /home/dpsdz93/CS_OUTFILE_20050713160526.dat remote: /home/dpsdz93/CS_OUTFILE_20050713160526.dat
---> PASV
500 'FTP: setsockopt (ignored): Permission denied': command not understood.
Passive mode refused.
---> QUIT
227 Entering Passive Mode (xxx,xx,xx,62,223,168)
Tranfer of file /home/dpsdz93/CS_OUTFILE_20050713160526.dat to rsd was NOT successful
******************
Any suggestions would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 08:44 AM
тАО07-14-2005 08:44 AM
Re: FTP failing - Passive mode refused
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 11:10 PM
тАО07-14-2005 11:10 PM
Re: FTP failing - Passive mode refused
ftp -v -n -d $RemoteHost << % >> $TmpFile
user $2 $3
umask 000
put $LocalFile $RemoteFile
quit
Debug output with passive mode off. I added the ls before the umask.
Started: Fri Jul 15 08:56:59 EDT 2005
Begin tranfer of file /home/dpsdz93/CS_OUTFILE_20050715085659.dat to rsd
Connected to rsd (xxx.xx.xx.62).
220 rsd FTP server (Version wu-2.6.1-23.2) ready.
---> SYST
530 Please login with USER and PASS.
---> USER
331 Password required for .
---> PASS XXXX
230 User logged in. Access restrictions apply.
Passive mode off.
---> PORT xxx,xx,xx,54,207,90
500 'FTP: setsockopt (ignored): Permission denied': command not understood.
---> SITE UMASK 000
200 PORT command successful.
local: /home/dpsdz93/CS_OUTFILE_20050715085659.dat remote: /home/dpsdz93/CS_OUTFILE_20050715085659.dat
---> PORT xxx,xx,xx,54,207,91
500 'FTP: bind: Address already in use': command not understood.
---> QUIT
ls test with passive on
Connected to rsd (xxx.xx.xx.62).
220 rsd FTP server (Version wu-2.6.1-23.2) ready.
---> SYST
530 Please login with USER and PASS.
---> USER
331 Password required for .
---> PASS XXXX
230 User logged in. Access restrictions apply.
---> PASV
500 'FTP: setsockopt (ignored): Permission denied': command not understood.
Passive mode refused.
---> SITE UMASK 000
227 Entering Passive Mode (xxx,xx,xx,62,175,72)
local: /home/dpsdz93/CS_OUTFILE_20050715084641.dat remote: /home/dpsdz93/CS_OUTFILE_20050715084641.dat
---> PASV
200 UMASK set to 000 (was 022)
---> QUIT
500 'FTP: setsockopt (ignored): Permission denied': command not understood.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 11:30 PM
тАО07-14-2005 11:30 PM
Re: FTP failing - Passive mode refused
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 12:34 AM
тАО07-15-2005 12:34 AM
Re: FTP failing - Passive mode refused
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 12:35 AM
тАО07-15-2005 12:35 AM
Re: FTP failing - Passive mode refused
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 12:47 AM
тАО07-15-2005 12:47 AM
Re: FTP failing - Passive mode refused
id > /tmp/id.out
So you will find out the real user that is executing the script, i believe it should be oracle. Then verify that the oracle user can read the file you want to send, and the destination directory has write permissions, and there is no other file with the same name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 01:05 AM
тАО07-15-2005 01:05 AM
Re: FTP failing - Passive mode refused
Output of the id is -
uid=500(oracle) gid=501(dba) groups=501(dba)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 02:06 AM
тАО07-15-2005 02:06 AM
Re: FTP failing - Passive mode refused
I don't know what can be the problem. Sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 02:29 AM
тАО07-15-2005 02:29 AM
Re: FTP failing - Passive mode refused
Thanks for looking at it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2005 04:47 AM
тАО07-15-2005 04:47 AM
Solutionport-allow all 0.0.0.0/0
pasv-allow all 0.0.0.0/0
passive address server_ip 0.0.0.0/0
log commands anonymous,real
log security anonymous,real
log transfers anonymous,real inbound,outbound
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2005 03:24 AM
тАО07-18-2005 03:24 AM
Re: FTP failing - Passive mode refused
Variations of these parameters were in ftpaccess, but the 1st & 2nd octets were IP specific instead of all 0. I changed them to be as you listed. A test after applying the new settings still failed. On a whim I removed the -d option from the ftp. The script completed successfully when I ran another test.
Your help was greatly appreciated.
Thanks.