Site Tools


linux:ubuntu:vsftpd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:ubuntu:vsftpd [2018/05/23 15:03] – [Add a ftp user] lunetikklinux:ubuntu:vsftpd [2018/05/23 15:31] (current) lunetikk
Line 1: Line 1:
-====== Fail2Ban ======+====== vSFTPD ======
  
 ===== Installation ===== ===== Installation =====
Line 9: Line 9:
 ==== Add a ftp user ==== ==== Add a ftp user ====
  
-Add a user for ftp (or use an existing one on the next step)+Add a user for ftp (or use an existing one and skip this step)
  
 <code> <code>
Line 16: Line 16:
 </code> </code>
  
-Add the created user to allowed your vsftpd.+Add the created (or existing) user the "allowed users" of your vsftpd.
 Create the following file: Create the following file:
  
-<code bash vsftpd.users><nowiki><your ftp user></nowiki></code>+<code vsftpd.users><your ftp user></code>
  
 ==== Configure vsftpd ==== ==== Configure vsftpd ====
Line 25: Line 25:
 Configure the following settings in /etc/vsftpd.conf Configure the following settings in /etc/vsftpd.conf
  
-<code> +<code bash vsftpd.conf
 # Run standalone?  vsftpd can run either from an inetd or as a standalone # Run standalone?  vsftpd can run either from an inetd or as a standalone
 # daemon started from an initscript. # daemon started from an initscript.
Line 113: Line 113:
 userlist_deny=NO userlist_deny=NO
 userlist_file=/etc/vsftpd.users userlist_file=/etc/vsftpd.users
 +
 +#split the log into two files (needed for fail2ban)
 +dual_log_enable=YES
 </code>  </code> 
 +
 +===== Troubleshooting =====
 +
 +==== 530 Login incorrect ====
 +
 +Trying to connect fails with the following message: \\
 +<code>
 +530 Login incorrect
 +</code>
 +
 +__Reason:__ \\
 +Wrong pam name on Ubuntu 14 and lower.\\
 +
 +__Fix:__ \\
 +Change the "pam_service_name" parameter in your /etc/vsftpd.conf from\\
 +<code>pam_service_name=vsftpd</code>
 +to\\
 +<code>pam_service_name=ftp</code>
 +
 +and restart your service\\
 +<code>service vsftpd restart</code>
 +
 +[[https://askubuntu.com/questions/413677/vsftpd-530-login-incorrect|https://askubuntu.com/questions/413677/vsftpd-530-login-incorrect]]
linux/ubuntu/vsftpd.1527080603.txt.gz · Last modified: 2018/05/23 15:03 by lunetikk