This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:ubuntu:vsftpd [2018/05/23 15:03] – [Add a ftp user] lunetikk | linux:ubuntu:vsftpd [2018/05/23 15:28] – lunetikk | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
===== 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) |
< | < | ||
Line 16: | Line 16: | ||
</ | </ | ||
- | Add the created user to allowed your vsftpd. | + | Add the created |
Create the following file: | Create the following file: | ||
- | < | + | < |
==== Configure vsftpd ==== | ==== Configure vsftpd ==== | ||
Line 25: | Line 25: | ||
Configure the following settings in / | Configure the following settings in / | ||
- | < | + | < |
# Run standalone? | # Run standalone? | ||
# daemon started from an initscript. | # daemon started from an initscript. | ||
Line 113: | Line 113: | ||
userlist_deny=NO | userlist_deny=NO | ||
userlist_file=/ | userlist_file=/ | ||
+ | |||
+ | #split the log into two files (needed for fail2ban) | ||
+ | dual_log_enable=YES | ||
</ | </ | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | ==== 530 Login incorrect ==== | ||
+ | |||
+ | Trying to connect fails with the following message: \\ | ||
+ | < | ||
+ | 530 Login incorrect | ||
+ | </ | ||
+ | |||
+ | __Reason:__ \\ | ||
+ | Wrong pam name on Ubuntu 14 and lower.//" | ||
+ | |||
+ | __Fix:__ \\ | ||
+ | Change the " | ||
+ | < | ||
+ | to | ||
+ | < | ||
+ | |||
+ | and restart your service | ||
+ | < | ||
+ | |||
+ | [[https:// |