Question

why can't install vsftp on DigitalOcean?

  • Posted on October 28, 2014
  • rebuildAsked by rebuild

I have installed vsftp service this way on my serverip:

   #apt-get install vsftpd
  #useradd -d /home/ftp virtual
   #chown virtual /home/ftp
  #chmod 700 /home/ftp
  #chown virtual /var/www
   #chmod 775 /var/www  
   #mkdir /etc/vsftpd/user_conf

#vim  /etc/vsftpd/user_conf/web 
    local_root=/var/www   
    anon_world_readable_only=NO
    anon_umask=022 
    write_enable=YES  
    anon_mkdir_write_enable=YES  
    anon_upload_enable=YES 
    anon_other_write_enable=YES 

#vim  /etc/vsftpd/user_conf/download
local_root=/home/ftp 
anon_world_readable_only=NO

#vim  /etc/vsftpd/user_conf/admin

    local_root=/home/ftp
    anon_world_readable_only=NO 
    write_enable=YES  
    anon_mkdir_write_enable=YES  
    anon_upload_enable=YES 
    anon_other_write_enable=YES 

nano /etc/vsftpd.conf 
   anonymous_enable=NO 
   local_enable=YES 
   guest_enable=YES 
   guest_username=virtual 
   pam_service_name=ftp.vu 
   user_config_dir=/etc/vsftpd/user_conf 

nano  logins.txt  

   web      account_name
   ******      keyword

   download    account_name
   *******      keyword

   admin       account_name
   *******     keyword
   #apt-get install libdb3-util
   #db3_load –T –t hash –f /tmp/logins.txt /etc/vsftpd/vsftpd_login.db
   auth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login
   account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login 

/etc/init.d/vsftpd restart

when everyting is done, i can’t connect my vsftp with command tfp open my serverip.

what is the matter?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

root@test:~# iptables -A INPUT -p tcp --dport 21 -j ACCEPT root@test:~# iptables -A OUTPUT -p tcp --sport 21 -j ACCEPT root@test:~# iptables -A INPUT -p tcp --dport 20 -j ACCEPT root@test:~# iptables -A OUTPUT -p tcp --sport 20 -j ACCEPT There is no reaction with the command : ftp open myserverip ls :Not connected.

Have you opened up your firewall?

ufw allow from any to any port 21