title: lftp 550 permission denied
body: <p>i've tried to create a script that will upload some file to a ftp server using lftp, but without any luck so far. If I used build in ftp command in debian I manage to succsessfully connected and put the file. 
  Here is the debug output from lftp command:</p>
  
  <pre><code>lftp xxx.xxx.xxx.xxxx -e "put -O /out/ some_file_name" -d
  ---- using user `user01' and password from ~/.netrc
  ---- Resolving host address...
  ---- 1 address found:xxx.xxx.xxx.xxxx
  ---- Connecting to xxx.xxx.xxx.xxxx (xxx.xxx.xxx.xxxx) port 21
  &lt;--- 220 (vsFTPd 2.0.7)                                         
  ---&gt; FEAT
  &lt;--- 211-Features:                                                    
  &lt;---  EPRT
  &lt;---  EPSV
  &lt;---  MDTM
  &lt;---  PASV
  &lt;---  REST STREAM
  &lt;---  SIZE
  &lt;---  TVFS
  &lt;---  UTF8
  &lt;--- 211 End
  ---&gt; OPTS UTF8 ON
  &lt;--- 200 Always in UTF8 mode.                                   
  ---&gt; USER user01
  &lt;--- 331 Please specify the password.                           
  ---&gt; PASS XXXX
  &lt;--- 230 Login successful.                                            
  ---&gt; PWD
  &lt;--- 257 "/"                                                              
  ---&gt; TYPE I
  &lt;--- 200 Switching to Binary mode.                                        
  ---&gt; EPSV
  &lt;--- 550 Permission denied.                                               
  ---- Switching passive mode off
  ---- Closing data socket
  ---- Closing control socket
  </code></pre>
  
  <p>As you can see I'm using stored user name and password from .netrc file. I have another script that connect to the same server but uploads files and rename them inside the remote ftp folder using lftp again. Can someone help and explain why I cannot put with lfpt but can do it using ftp.</p>