<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FTP failing - Passive mode refused in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582620#M18667</link>
    <description>The script always fails executing the put command.  The ftp command from the script -&lt;BR /&gt;ftp -v -n -d $RemoteHost &amp;lt;&amp;lt; % &amp;gt;&amp;gt; $TmpFile&lt;BR /&gt;user $2 $3&lt;BR /&gt;umask 000&lt;BR /&gt;put $LocalFile $RemoteFile&lt;BR /&gt;quit&lt;BR /&gt;&lt;BR /&gt;Debug output with passive mode off.  I added the ls before the umask.&lt;BR /&gt;&lt;BR /&gt;Started: Fri Jul 15 08:56:59 EDT 2005&lt;BR /&gt;Begin tranfer of file /home/dpsdz93/CS_OUTFILE_20050715085659.dat to rsd&lt;BR /&gt;Connected to rsd (xxx.xx.xx.62).&lt;BR /&gt;220 rsd FTP server (Version wu-2.6.1-23.2) ready.&lt;BR /&gt;---&amp;gt; SYST&lt;BR /&gt;530 Please login with USER and PASS.&lt;BR /&gt;---&amp;gt; USER &lt;BR /&gt;331 Password required for .&lt;BR /&gt;---&amp;gt; PASS XXXX&lt;BR /&gt;230 User logged in.  Access restrictions apply.&lt;BR /&gt;Passive mode off.&lt;BR /&gt;---&amp;gt; PORT xxx,xx,xx,54,207,90&lt;BR /&gt;500 'FTP: setsockopt (ignored): Permission denied': command not understood.&lt;BR /&gt;---&amp;gt; SITE UMASK 000&lt;BR /&gt;200 PORT command successful.&lt;BR /&gt;local: /home/dpsdz93/CS_OUTFILE_20050715085659.dat remote: /home/dpsdz93/CS_OUTFILE_20050715085659.dat&lt;BR /&gt;---&amp;gt; PORT xxx,xx,xx,54,207,91&lt;BR /&gt;500 'FTP: bind: Address already in use': command not understood.&lt;BR /&gt;---&amp;gt; QUIT&lt;BR /&gt;&lt;BR /&gt;ls test with passive on &lt;BR /&gt;&lt;BR /&gt;Connected to rsd (xxx.xx.xx.62).&lt;BR /&gt;220 rsd FTP server (Version wu-2.6.1-23.2) ready.&lt;BR /&gt;---&amp;gt; SYST&lt;BR /&gt;530 Please login with USER and PASS.&lt;BR /&gt;---&amp;gt; USER &lt;BR /&gt;331 Password required for .&lt;BR /&gt;---&amp;gt; PASS XXXX&lt;BR /&gt;230 User logged in.  Access restrictions apply.&lt;BR /&gt;---&amp;gt; PASV&lt;BR /&gt;500 'FTP: setsockopt (ignored): Permission denied': command not understood.&lt;BR /&gt;Passive mode refused.&lt;BR /&gt;---&amp;gt; SITE UMASK 000&lt;BR /&gt;227 Entering Passive Mode (xxx,xx,xx,62,175,72)&lt;BR /&gt;local: /home/dpsdz93/CS_OUTFILE_20050715084641.dat remote: /home/dpsdz93/CS_OUTFILE_20050715084641.dat&lt;BR /&gt;---&amp;gt; PASV&lt;BR /&gt;200 UMASK set to 000 (was 022)&lt;BR /&gt;---&amp;gt; QUIT&lt;BR /&gt;500 'FTP: setsockopt (ignored): Permission denied': command not understood.&lt;BR /&gt;</description>
    <pubDate>Fri, 15 Jul 2005 06:10:34 GMT</pubDate>
    <dc:creator>C. Cellucci</dc:creator>
    <dc:date>2005-07-15T06:10:34Z</dc:date>
    <item>
      <title>FTP failing - Passive mode refused</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582618#M18665</link>
      <description>I am running RHAS 2.1 kernel 57.  wu-ftpd is 2.6.1-23.2.  I have a user who is executing a script via sqlplus.  That script ftps a file to another server.  The failure is being reported once the PASV is executed.   The script was modified to turn off passive - that did not change the situation.    The ftp script works perfectly when it is executed from the command line.  The ftp as been executed as various users including Oracle, each test of the ftp as a different user worked.  The ftp failure only occurs when the script is run through sqlplus.&lt;BR /&gt;&lt;BR /&gt;The following is the debug information from the ftp  (the site specific information has been changed to xx). &lt;BR /&gt; &lt;BR /&gt;Started: Wed Jul 13 16:05:27 EDT 2005&lt;BR /&gt;Begin tranfer of file /home/dpsdz93/CS_OUTFILE_20050713160526.dat to rsd&lt;BR /&gt;Connected to rsd (XXX.xx.xx.62).&lt;BR /&gt;220 rsd.com FTP server (Version wu-2.6.1-23.2) ready.&lt;BR /&gt;---&amp;gt; SYST&lt;BR /&gt;530 Please login with USER and PASS.&lt;BR /&gt;---&amp;gt; USER xyz&lt;BR /&gt;331 Password required for dpsdz93.&lt;BR /&gt;---&amp;gt; PASS XXXX&lt;BR /&gt;230 User xyz logged in.  Access restrictions apply.&lt;BR /&gt;---&amp;gt; SITE UMASK 000&lt;BR /&gt;200 UMASK set to 000 (was 022)&lt;BR /&gt;local: /home/dpsdz93/CS_OUTFILE_20050713160526.dat remote: /home/dpsdz93/CS_OUTFILE_20050713160526.dat&lt;BR /&gt;---&amp;gt; PASV&lt;BR /&gt;500 'FTP: setsockopt (ignored): Permission denied': command not understood.&lt;BR /&gt;Passive mode refused.&lt;BR /&gt;---&amp;gt; QUIT&lt;BR /&gt;227 Entering Passive Mode (xxx,xx,xx,62,223,168)&lt;BR /&gt;Tranfer of file /home/dpsdz93/CS_OUTFILE_20050713160526.dat to rsd was NOT successful&lt;BR /&gt;******************&lt;BR /&gt;Any suggestions would be appreciated.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2005 06:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582618#M18665</guid>
      <dc:creator>C. Cellucci</dc:creator>
      <dc:date>2005-07-14T06:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: FTP failing - Passive mode refused</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582619#M18666</link>
      <description>When you run the script from sqlplus in ftp active mode, what is the debug output? Where do you get the error in this case?. I want to know if the error is in the pasv command or with any other command, try issuing and ls before anything, in passive and active mode and post the results.</description>
      <pubDate>Thu, 14 Jul 2005 15:44:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582619#M18666</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-07-14T15:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: FTP failing - Passive mode refused</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582620#M18667</link>
      <description>The script always fails executing the put command.  The ftp command from the script -&lt;BR /&gt;ftp -v -n -d $RemoteHost &amp;lt;&amp;lt; % &amp;gt;&amp;gt; $TmpFile&lt;BR /&gt;user $2 $3&lt;BR /&gt;umask 000&lt;BR /&gt;put $LocalFile $RemoteFile&lt;BR /&gt;quit&lt;BR /&gt;&lt;BR /&gt;Debug output with passive mode off.  I added the ls before the umask.&lt;BR /&gt;&lt;BR /&gt;Started: Fri Jul 15 08:56:59 EDT 2005&lt;BR /&gt;Begin tranfer of file /home/dpsdz93/CS_OUTFILE_20050715085659.dat to rsd&lt;BR /&gt;Connected to rsd (xxx.xx.xx.62).&lt;BR /&gt;220 rsd FTP server (Version wu-2.6.1-23.2) ready.&lt;BR /&gt;---&amp;gt; SYST&lt;BR /&gt;530 Please login with USER and PASS.&lt;BR /&gt;---&amp;gt; USER &lt;BR /&gt;331 Password required for .&lt;BR /&gt;---&amp;gt; PASS XXXX&lt;BR /&gt;230 User logged in.  Access restrictions apply.&lt;BR /&gt;Passive mode off.&lt;BR /&gt;---&amp;gt; PORT xxx,xx,xx,54,207,90&lt;BR /&gt;500 'FTP: setsockopt (ignored): Permission denied': command not understood.&lt;BR /&gt;---&amp;gt; SITE UMASK 000&lt;BR /&gt;200 PORT command successful.&lt;BR /&gt;local: /home/dpsdz93/CS_OUTFILE_20050715085659.dat remote: /home/dpsdz93/CS_OUTFILE_20050715085659.dat&lt;BR /&gt;---&amp;gt; PORT xxx,xx,xx,54,207,91&lt;BR /&gt;500 'FTP: bind: Address already in use': command not understood.&lt;BR /&gt;---&amp;gt; QUIT&lt;BR /&gt;&lt;BR /&gt;ls test with passive on &lt;BR /&gt;&lt;BR /&gt;Connected to rsd (xxx.xx.xx.62).&lt;BR /&gt;220 rsd FTP server (Version wu-2.6.1-23.2) ready.&lt;BR /&gt;---&amp;gt; SYST&lt;BR /&gt;530 Please login with USER and PASS.&lt;BR /&gt;---&amp;gt; USER &lt;BR /&gt;331 Password required for .&lt;BR /&gt;---&amp;gt; PASS XXXX&lt;BR /&gt;230 User logged in.  Access restrictions apply.&lt;BR /&gt;---&amp;gt; PASV&lt;BR /&gt;500 'FTP: setsockopt (ignored): Permission denied': command not understood.&lt;BR /&gt;Passive mode refused.&lt;BR /&gt;---&amp;gt; SITE UMASK 000&lt;BR /&gt;227 Entering Passive Mode (xxx,xx,xx,62,175,72)&lt;BR /&gt;local: /home/dpsdz93/CS_OUTFILE_20050715084641.dat remote: /home/dpsdz93/CS_OUTFILE_20050715084641.dat&lt;BR /&gt;---&amp;gt; PASV&lt;BR /&gt;200 UMASK set to 000 (was 022)&lt;BR /&gt;---&amp;gt; QUIT&lt;BR /&gt;500 'FTP: setsockopt (ignored): Permission denied': command not understood.&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jul 2005 06:10:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582620#M18667</guid>
      <dc:creator>C. Cellucci</dc:creator>
      <dc:date>2005-07-15T06:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: FTP failing - Passive mode refused</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582621#M18668</link>
      <description>You said you added the ls before the umask and you get "permission denied". Can you try set the permissions for the destination directory wide open 777, just for test, if this works, may be a directory/file permission problem.</description>
      <pubDate>Fri, 15 Jul 2005 06:30:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582621#M18668</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-07-15T06:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: FTP failing - Passive mode refused</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582622#M18669</link>
      <description>Changing permissions to 777 did not change anything.</description>
      <pubDate>Fri, 15 Jul 2005 07:34:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582622#M18669</guid>
      <dc:creator>C. Cellucci</dc:creator>
      <dc:date>2005-07-15T07:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: FTP failing - Passive mode refused</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582623#M18670</link>
      <description>Tried passive and non passive.  No change in either.</description>
      <pubDate>Fri, 15 Jul 2005 07:35:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582623#M18670</guid>
      <dc:creator>C. Cellucci</dc:creator>
      <dc:date>2005-07-15T07:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: FTP failing - Passive mode refused</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582624#M18671</link>
      <description>In the script that is runned through sqlplus, before anything put the command:&lt;BR /&gt;&lt;BR /&gt;id &amp;gt; /tmp/id.out&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Fri, 15 Jul 2005 07:47:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582624#M18671</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-07-15T07:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: FTP failing - Passive mode refused</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582625#M18672</link>
      <description>Permissions are 777 on files and the originating and destination directory trees.&lt;BR /&gt;&lt;BR /&gt;Output of the id is -&lt;BR /&gt;uid=500(oracle) gid=501(dba) groups=501(dba)</description>
      <pubDate>Fri, 15 Jul 2005 08:05:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582625#M18672</guid>
      <dc:creator>C. Cellucci</dc:creator>
      <dc:date>2005-07-15T08:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: FTP failing - Passive mode refused</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582626#M18673</link>
      <description>Remember that 777 must be the directory, not the file. Running the script as oracle outside sqlplus works, right?&lt;BR /&gt;&lt;BR /&gt;I don't know what can be the problem. Sorry.</description>
      <pubDate>Fri, 15 Jul 2005 09:06:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582626#M18673</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-07-15T09:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: FTP failing - Passive mode refused</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582627#M18674</link>
      <description>Works perfectly outside of sqlplus.   This has us stumped here also.&lt;BR /&gt;&lt;BR /&gt;Thanks for looking at it.</description>
      <pubDate>Fri, 15 Jul 2005 09:29:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582627#M18674</guid>
      <dc:creator>C. Cellucci</dc:creator>
      <dc:date>2005-07-15T09:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: FTP failing - Passive mode refused</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582628#M18675</link>
      <description>Did you verify the /var/log/messages and the /var/log/xferlog on the ftp server to see if there are any clues? Verify that you have the following lines on your configuration file:&lt;BR /&gt;&lt;BR /&gt;port-allow all 0.0.0.0/0&lt;BR /&gt;pasv-allow all 0.0.0.0/0&lt;BR /&gt;passive address server_ip 0.0.0.0/0&lt;BR /&gt;&lt;BR /&gt;log commands anonymous,real&lt;BR /&gt;log security anonymous,real&lt;BR /&gt;log transfers anonymous,real inbound,outbound&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jul 2005 11:47:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582628#M18675</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-07-15T11:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: FTP failing - Passive mode refused</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582629#M18676</link>
      <description>Nothing in messages or xferlog.&lt;BR /&gt;&lt;BR /&gt;Variations of these parameters were in ftpaccess, but the 1st &amp;amp; 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.&lt;BR /&gt;&lt;BR /&gt;Your help was greatly appreciated.  &lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 18 Jul 2005 10:24:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-failing-passive-mode-refused/m-p/3582629#M18676</guid>
      <dc:creator>C. Cellucci</dc:creator>
      <dc:date>2005-07-18T10:24:30Z</dc:date>
    </item>
  </channel>
</rss>

