I can’t get vsfptd
working on Ubuntu 12.04.
my vsftpd.conf
file looks like this, and I try to connect with a local user:
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
Error message in FileZilla:
Response: 331 Please specify the password.
Command: PASS ****
Response: 530 Login incorrect.
asked Jan 31, 2014 at 18:03
FlorianFlorian
8021 gold badge6 silver badges9 bronze badges
4
Back up the config file before making a change;
sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.back
and then edit vsftpd.conf (with vi or nano)
nano /etc/vsftpd.conf
Then make the following change
pam_service_name=ftp
Save your change and restart the ftp server (if you use nano hit CTRL+O & enter to save then CTRL+X to exit)
sudo service vsftpd restart
Source: VSFTPD configuration problems with 12.04
answered Jan 31, 2014 at 18:35
AzkerMAzkerM
10.1k6 gold badges31 silver badges51 bronze badges
9
By default vsFTPd uses the file /etc/pam.d/vsftpd
.
This file by default requires FTP users to have a shell listed in /etc/shells
and requires them not to be listed in /etc/ftpusers
.
If you check those 2 things your probably find what the problem is.
answered Sep 4, 2015 at 14:45
4
I did not need to change the vsftpd.conf
. Only needed to make sure that a shell was set in my /etc/passwd
file, that also was lited in /etc/shells
.
So basically after useradd
without a shell I needed to make sure the home directory was created and that the user had /bin/bash
as it’s shell.
galoget
2,9432 gold badges20 silver badges24 bronze badges
answered Oct 31, 2015 at 11:49
DuncanDuncan
811 silver badge2 bronze badges
1
I met this problem when I tried to login in with root
and I just solved it.
vsftpd: version 3.0.2
Solution:
Check the following file (it contains list of users disallowed FTP access):
/etc/ftpusers
In my case, I commented out root
from the file, then it worked.
galoget
2,9432 gold badges20 silver badges24 bronze badges
answered Dec 3, 2015 at 8:27
2
Please make some changes in /etc/vsftpd.conf
:
pam_service_name=ftp
If you want to set access by default /var/www
directory for local user you can do that with below line:
local_root=/var/www
Now save and exit.
Restart vsftpd
server using:
sudo service vsftpd restart
galoget
2,9432 gold badges20 silver badges24 bronze badges
answered Sep 7, 2015 at 9:05
1
The suggested resolution did not work for me. I gave up on the ftp
user, and switched my attention to the ubuntu
user. I made sure there was a password associated with the ubuntu
user.
I made sure to enable passive mode, and set local_enable=YES
in the vsftpd.conf
file.
I was able to authenticate just fine using the ubuntu
account. And I successfully uploaded a large file to my Amazon Ubuntu FTP server. Clearly there was something amiss with the ftp
user.
Ron
20.4k6 gold badges57 silver badges72 bronze badges
answered May 6, 2015 at 5:02
I used Ubuntu 18.04 and LetsEncrypt certificates for TLS encryption. What worked was changing the name of the pam_service_name=ftp
the error I was getting in Filezilla was:
"GnuTLS error -15": An unexpected TLS packet was received.
Reference: FTPS set up in ubuntu 18.04
galoget
2,9432 gold badges20 silver badges24 bronze badges
answered Aug 27, 2019 at 5:37
I’m trying to get a vsftpd server set up on CentOS 5.3 x64. I’m not able to get any local user login’s to work. Here is my vsftpd.conf:
local_enable=YES
write_enable=YES
pam_service_name=vsftpd
connect_from_port_20=YES
listen=YES
pam_service_name=vsftpd
xferlog_std_format=NO
log_ftp_protocol=YES
chroot_local_user=YES
Here is the output of vsftp.log:
Mon Sep 13 23:34:44 2010 [pid 19243] CONNECT: Client "10.0.1.138"
Mon Sep 13 23:34:44 2010 [pid 19243] FTP response: Client "10.0.1.138", "220 (vsFTPd 2.0.5)"
Mon Sep 13 23:34:44 2010 [pid 19243] FTP command: Client "10.0.1.138", "USER dwelch"
Mon Sep 13 23:34:44 2010 [pid 19243] [dwelch] FTP response: Client "10.0.1.138", "331 Please specify the password."
Mon Sep 13 23:34:44 2010 [pid 19243] [dwelch] FTP command: Client "10.0.1.138", "PASS <password>"
Mon Sep 13 23:34:44 2010 [pid 19242] [dwelch] FAIL LOGIN: Client "10.0.1.138"
Mon Sep 13 23:34:45 2010 [pid 19243] [dwelch] FTP response: Client "10.0.1.138", "530 Login incorrect."
And the output of the secure log:
Sep 13 17:40:50 intra vsftpd: pam_unix(vsftpd:auth): authentication failure; logname= uid=0 euid=0 tty=ftp ruser=dwelch rhost=10.0.1.138 user=dwelch
It looks like pam is not authenticating the user. Here is my /etc/pam.d/vsftp file:
#%PAM-1.0
session optional pam_keyinit.so force revoke
auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth required pam_shells.so
auth include system-auth
account include system-auth
session include system-auth
session required pam_loginuid.so
Can anyone see what I’m missing? Thanks.
- Печать
Страницы: [1] Вниз
Тема: vsftpd — 530 Login incorrect. (Прочитано 20161 раз)
0 Пользователей и 1 Гость просматривают эту тему.
thunderamur
Настраиваю 7 фтп, везде 12.04. Настроил 5 — нормально все. На 6 и 7 делал то же самое, но блин фтп упорно не пускает. Я уже сломал башку думая, что это мб. Опять какая-нить мелочь, которую не вижу.
Добавляем юзера, пароль 123qwe.
конфиг
Перезапуск демона
Проверяем:
WTF?!
satch
не совсем по теме, но юзеров для фтп лучше, для безопасности, добавлять с опцией —shell /bin/false
Наше желание помочь прямопропорционально вашему желанию решить проблему
thunderamur
Это все для внутренней сети.
ssh разрешен для одного пользователя
А что же случилось, что фтп не пускает, я уже на 3 раза проверил.
А вот логи забыл посмотреть Надо глянуть.
Пользователь решил продолжить мысль 28 Июня 2013, 19:35:58:
Блин, там нифига нет, даже если включить в конфиге, все, что с этим связано. Просто «LOGIN FAILED».
« Последнее редактирование: 28 Июня 2013, 19:35:58 от ⚡ Thunde® ⚡ »
thunderamur
apt-get autoremove --purge vsftpd
apt-get install proftpd
andwer07
Столкнулся сегодня с такой же проблемой. Вдруг кому пригодится.
Если у фтп-юзеров в качестве shell прописан, например, /bin/false, то этот shell должен быть прописан в /etc/shells. Иначе сервер выдаст Login incorrect.
winmasta
Столкнулся сегодня с такой же проблемой. Вдруг кому пригодится.
Если у фтп-юзеров в качестве shell прописан, например, /bin/false, то этот shell должен быть прописан в /etc/shells. Иначе сервер выдаст Login incorrect.
этот способ не проверял, но по инструкции ОТСЮДА поменял в конфиге /etc/vsftpd.conf
написал
pam_service_name=ftp
вместо
pam_service_name=vsftpd
правда так и не понял в чем суть этих действий, може знатоки пояснят (кинут линком)
« Последнее редактирование: 18 Июня 2014, 20:37:21 от winmasta »
- Печать
Страницы: [1] Вверх
Hey there,
I just wanted to share a problem I had with my ftpdaemon with you and which I didn’t find in this forum.
My ftp server always throw an error, trying to log in with new created ftp accounts. I’m not sure since when this error occurred, a user of mine pointed me on that issue. But I would say the Vestacp version is not essential in that case.
My ftp client acted as if I just entered wrong user data.
Code: Select all
Befehl: USER ******
Antwort: 331 Please specify the password.
Befehl: PASS *******
Antwort: 530 Login incorrect.
So I checked the vsftp logs in /var/log/vsftpd.log
Code: Select all
Sun Mar 25 12:04:01 2018 [pid 2] CONNECT: Client "87.123.193.139"
Sun Mar 25 12:04:04 2018 [pid 1] [*********] FAIL LOGIN: Client "87.123.193.139"
Actually looked like wrong user data. But I entered them correctly.
I checked /etc/passwd and in the meantime I also googled a bit. So I found this article, which described exactly my problem.
https://github.com/serghey-rodin/vesta/issues/1437
New users got a different path to the «nologin» shell than before.
Initially it was /sbin/nologin. New users got the path to /usr/sbin/nologin
That path was not registered in /etc/shells.
Looked like this:
Code: Select all
# /etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/sbin/nologin
/usr/bin/rssh
/usr/bin/tmux
and I easily added this line
saved the file and everything worked fine again afterwards.
Cheers and have a nice Sunday!
fedor87
написал 14 февраля 2009 года в 16:25 (17994 просмотра)
Ведет себя
неопределенно; открыл 2 темы в форуме, оставил 8 комментариев на сайте.
Нужно было сделать ftp сервер на SLES 10.2 (SuSE).
Поставил ftp сервер vsftpd, идущий в дистрибутиве.
Нашел инструкцию, начал настраивать точно по ней.
Задача, ftp с аутентификацией по имя пользователя,пароль. Каждый польховтаель может работать только в своей папке.
Это мой первый ftp сервер, поэтому предпочитаю действовать по максимально подробной инструкции.
www.opennet.ru/base/net/vsftpd_fedora7.txt.html
Итак, все по шаг сделал, но не работает. При попытке входа, пишет, что ошибка — 530. Похоже, я ошибся при копировании файлов и прописывании библиотек. Файрволл пока отключен.
Я делал так.
1. Установил vsftpd и нашел папку с примерами его конфигурации (EXAMPLE/VIRTUAL_USERS).
2. Вот тут я похоже не так понял.
«копируем необходимые файлы в нужные каталоги
vsftpd.pam /etc/pam.d/ftp»
Я должен создать папку ftp в /etc/pam.d/ и скопировать файл vsftpd.pam в
нее или должнен создать просто файл ftp и скопировать в него содержимое vsftpd.pam ? Я создал папку ftp и копировал файл в нее.
Дальше Скопировал файл logins.txt в папку vsftpd, и скопировал файл vsftpd.conf в папку vsftpd.
Далее все по инструкции.
Но в файле /etc/vsftpd/vsftpd.conf вместо
local_root=/data
я написал local_root=/srv/ftp/vsftpb (ественно ее сначла создав)
+ в скрипте для внесения пользователей
я написал db_load вместо db42_load (но скрипт работает, файл login.db создается в папке /etc/vsftpd/ ).
Тем не менее, — «530 this ftp server is anonymous only»
Возможно проблема в том, что нужно дописать в дистрибутивах x86_64 в /etc/pam.d/ftp нужны такие вот строки
auth required /lib64/security/pam_userdb.so crypt=none db=/etc/vsftpd/login
account required /lib64/security/pam_userdb.so crypt=none db=/etc/vsftpd/login
Но если ftp это папка, то куда именно это дописывать ?
И откуда взялось
«далее в /etc/pam.d/vsftpd
auth required /lib64/security/pam_userdb.so db=/etc/vsftpd/login
account required /lib64/security/pam_userdb.so db=/etc/vsftpd/login»
Помогите, плиз. Пардон за такой вопрос, но я Linux ровно 3 недели изучаю.
Модератор: april22
freepbx vsftpd 530 Login incorrect
Добрый день.
Помогите советом где что не верно.
Настраиваю на freepbx провижининг. Мучаюсь с ftp.
Информации много в интернете не спорю, но не получается.
Конф
- Код: выделить все
listen=YES
background=YES
anonymous_enable=NO
#anon_root=/ftp
pam_service_name=vsftpd
local_enable=YES
write_enable=YES
connect_from_port_20=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
allow_writeable_chroot=YES
userlist_enable=YES
userlist_file=/etc/vsftpd/user_list
userlist_deny=NO
user_config_dir=/etc/vsftpd/users
force_dot_files=YES
local_umask=022
pasv_min_port=49000
pasv_max_port=55000
- Код: выделить все
cat /etc/vsftpd/chroot_list
root
- Код: выделить все
ftp localhost
Trying ::1...
ftp: connect to address ::1Connection refused
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
220 (vsFTPd 3.0.2)
Name (localhost:root): root
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
- Код: выделить все
#%PAM-1.0
session optional pam_keyinit.so force revoke
auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth required pam_shells.so
auth include password-auth
account include password-auth
session required pam_loginuid.so
session include password-auth
Не знаю как еще от тштутить проблему ? firewall выкл. selinux то же.
- puf
- Сообщений: 83
- Зарегистрирован: 03 апр 2013, 11:05
Re: freepbx vsftpd 530 Login incorrect
ded » 03 сен 2019, 00:34
1) sftp лучше, чем просто ftp
2) логиниться в ftp пользователем root не даст, потому что есть вероятность перехвата пароля root при логине — ftp не шифруется, любой сниффер можно настроить наверное на перехват:
3) что говорит /etc/vsftpd/users ? Есть там пользователи ?
puf писал(а):Не знаю как еще от тштутить проблему ?
4) у вас есть лог — /var/log/vsftpd.log
Почему не анализируете?
- ded
- Сообщений: 15571
- Зарегистрирован: 26 авг 2010, 19:00
Re: freepbx vsftpd 530 Login incorrect
puf » 03 сен 2019, 09:23
Добрый день.
Логи конечно смотрел, забыл указать прошу прощения
- Код: выделить все
cat /var/log/vsftpd.log
Mon Sep 2 15:35:07 2019 [pid 19572] CONNECT: Client "10.1.1.86"
Mon Sep 2 15:40:01 2019 [pid 19924] CONNECT: Client "10.1.1.86"
Mon Sep 2 15:40:09 2019 [pid 19926] CONNECT: Client "10.1.1.86"
Mon Sep 2 15:40:17 2019 [pid 19928] CONNECT: Client "10.1.1.86"
Mon Sep 2 15:45:03 2019 [pid 20438] CONNECT: Client "10.1.1.86"
Mon Sep 2 15:45:07 2019 [pid 20445] CONNECT: Client "10.1.1.86"
Mon Sep 2 15:45:07 2019 [pid 20444] [root] FAIL LOGIN: Client "10.1.1.86"
Mon Sep 2 15:45:13 2019 [pid 20453] CONNECT: Client "10.1.1.86"
Mon Sep 2 15:45:43 2019 [pid 20493] CONNECT: Client "10.1.1.86"
Mon Sep 2 15:45:43 2019 [pid 20492] [root] FAIL LOGIN: Client "10.1.1.86"
Mon Sep 2 15:45:47 2019 [pid 20499] CONNECT: Client "10.1.1.86"
Mon Sep 2 15:45:47 2019 [pid 20498] [root] FAIL LOGIN: Client "10.1.1.86"
Mon Sep 2 15:48:12 2019 [pid 20747] CONNECT: Client "10.1.1.86"
Mon Sep 2 15:48:21 2019 [pid 20749] CONNECT: Client "10.1.1.86"
Mon Sep 2 15:48:21 2019 [pid 20748] [provision] FAIL LOGIN: Client "10.1.1.86"
- Код: выделить все
[root@pbxautopr ~]# ls /etc/vsftpd/users/
provision
- puf
- Сообщений: 83
- Зарегистрирован: 03 апр 2013, 11:05
Re: freepbx vsftpd 530 Login incorrect
ded » 03 сен 2019, 11:31
Вот что странно: вы мои ответы как-то проигнорировали? Исходя из
puf писал(а): ls /etc/vsftpd/users/
provision
надо было вероятно коннектится не как root, а как provision?
- Код: выделить все
Connected to localhost (127.0.0.1).
220 (vsFTPd 3.0.2)
Name (localhost:root): root
331 Please specify the password.
- ded
- Сообщений: 15571
- Зарегистрирован: 26 авг 2010, 19:00
Re: freepbx vsftpd 530 Login incorrect
puf » 03 сен 2019, 12:04
Нет не в коем случаи.
По root понял.
Создан так же другой пользователь в системе provision, он указан как Вы и написали, из логов видно что все то же самое что и при попытке от root была.
Не верно разве я попытался развернуть ответы на Ваши вопрос ?
- puf
- Сообщений: 83
- Зарегистрирован: 03 апр 2013, 11:05
Re: freepbx vsftpd 530 Login incorrect
ded » 03 сен 2019, 12:55
- ded
- Сообщений: 15571
- Зарегистрирован: 26 авг 2010, 19:00
Re: freepbx vsftpd 530 Login incorrect
puf » 03 сен 2019, 18:53
ded cпасибо за время, я это все гуглил. не помогает. Переустановил прям вот по статье https://serveradmin.ru/ustanovka-i-nastroyka-ftp-servera-na-centos-7/#_ftp_CentOS_7
- Код: выделить все
cat /var/log/vsftpd.log
Tue Sep 3 17:45:40 2019 [pid 16303] CONNECT: Client "10.1.1.86"
Tue Sep 3 17:45:45 2019 [pid 16305] CONNECT: Client "10.1.1.86"
Tue Sep 3 17:45:47 2019 [pid 16304] [ftp-user] FAIL LOGIN: Client "10.1.1.86"
Tue Sep 3 17:45:55 2019 [pid 16307] CONNECT: Client "10.1.1.86"
Tue Sep 3 17:45:57 2019 [pid 16306] [ftp-user] FAIL LOGIN: Client "10.1.1.86"
Tue Sep 3 17:47:22 2019 [pid 16420] CONNECT: Client "10.1.1.86"
Tue Sep 3 17:47:28 2019 [pid 16452] CONNECT: Client "10.1.1.86"
Tue Sep 3 17:47:28 2019 [pid 16451] [ftp-user] FAIL LOGIN: Client "10.1.1.86"
Tue Sep 3 17:47:54 2019 [pid 16464] CONNECT: Client "10.1.1.86"
Tue Sep 3 17:48:01 2019 [pid 16466] CONNECT: Client "10.1.1.86"
Tue Sep 3 17:48:01 2019 [pid 16465] [ftp-user] FAIL LOGIN: Client "10.1.1.86"
- Код: выделить все
pam_service_name=ftp
и
- Код: выделить все
pam_service_name=ftpd
- Код: выделить все
ls /etc/vsftpd/users/
ftp-user
Хз наверное руки кривые.
- puf
- Сообщений: 83
- Зарегистрирован: 03 апр 2013, 11:05
Re: freepbx vsftpd 530 Login incorrect
ded » 03 сен 2019, 19:09
Не знаю ни одного варианта провизионинга по ftp.
|Может всё-таки tftp ?
Это совсем не ftp!
- ded
- Сообщений: 15571
- Зарегистрирован: 26 авг 2010, 19:00
Re: freepbx vsftpd 530 Login incorrect
Zavr2008 » 04 сен 2019, 04:15
Модель телефонов какая?
Российские шлюзы E1 Alvis-GW. Voip-Модернизация УПАТС, FreePBX, CRM. Продолжаем работать, импортозамещаем!
-
Zavr2008 - Сообщений: 2051
- Зарегистрирован: 27 янв 2011, 01:35
-
- Сайт
Re: freepbx vsftpd 530 Login incorrect
puf » 04 сен 2019, 12:50
ded
В настройках oss endpoint manager просто указано tftp/ftp и необходимо указать ip сервера. Провижинг ни разу не делал, поэтому подумал что ftp необходим. Но Вы правы. Так что с ftp пока стопарнусь
Zavr2008
yealink t 44 или 46 скорее всего.
- puf
- Сообщений: 83
- Зарегистрирован: 03 апр 2013, 11:05
Вернуться в Вопросы новичков
Кто сейчас на форуме
Сейчас этот форум просматривают: Google [Bot] и гости: 10
Vsftpd 530 Permission denied error is no longer a problem with Bobcares by your side.
At Bobcares, we offer solutions for every query, big and small, as a part of our Server Management Service.
Let’s take a look at how our Support Team recently helped a customer how to resolve the vsftpd 530 Permission denied error.
What is vsftpd 530 Permission denied error?
If you have a newly installed vsftp server that is not accessible by some users, you have come to the right place. You may also come across the following error:
# service vsftpd status vsftpd (pid 5806) is running... # ftp localhost Connected to localhost.localdomain. 220 (vsFTPd 2.0.5) 530 Please login with USER and PASS. KERBEROS_V4 rejected as an authentication type Name (localhost:oracle): user 530 Permission denied. Login failed.
According to our Support Techs, this error pops up when the parameters userlist_enable and userlist_deny in the /etc/vsftpd/vsftpd.conf is set to YES. Furthermore, the “530 Permission denied” error does not prompt for a password.
If userlist_enable is set to YES, vsftpd will load usernames to the /etc/vsftpd/userlist_file file. In case a user attempts to log in via a name on this file, they are denied access before they are prompted for a password.
Interestingly, this is a good way to prevent cleartext passwords from being transmitted. It also prompts the examination of userlist_deny. In fact, setting this parameter to NO causes users to be able to log in even if they are in the /etc/vsftpd/userlist_file file.
How to allow VSFTP server local user to login
- First, we have to edit the /etc/vsftpd/vsftpd.conf file and set userlist_enable to YES and userlist_deny to NO with the following commands:
# vi /etc/vsftpd/vsftpd.conf userlist_enable=YES userlist_deny=NO
- Next, we will add the username to the /etc/vsftpd/user_list file as seen below:
# cat /etc/vsftpd/user_list username1
- Then, we will add all the users who are not allowed to ftp in the /etc/vsftpd/ftpusers file as seen below:
# cat ftpusers # Users that are not allowed to login via ftp root bin daemon adm lp sync shutdown halt news mail uucp games operator
- After that, we have to restart vsftpd with the following command:
# service vsftpd restart
- Now, we will try ftp once more with the user username1:
$ ftp localhost Connected to localhost.localdomain. 220 (vsFTPd 2.0.5) 530 Please login with USER and PASS. 530 Please login with USER and PASS. KERBEROS_V4 rejected as an authentication type Name (localhost:root): username1 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp>
- If we try via a disallowed user id, for instance, root, we will get the following output:
# ftp localhost Connected to localhost.localdomain. 220 (vsFTPd 2.0.5) 530 Please login with USER and PASS. 530 Please login with USER and PASS. KERBEROS_V4 rejected as an authentication type Name (localhost:root): root 530 Permission denied. Login failed. ftp>
[Wondering how to solve another query? We are just a click away.]
Conclusion
To conclude, the skilled Support Engineers at Bobcares demonstrated how to deal with vsftpd 530 Permission denied error.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
GET STARTED
Home » Computers » Linux » vsftpd on Ubuntu server 530 login incorrect error – fixed
When setting up my new web server I had a problem when installing vsftpd on Ubuntu Server 12.04 LTS. After doing the sudo apt-get install vsftpd and enabling login for local users, I got a “Server 530 login incorrect error” when trying to connect with a local user. The settings for disabling anonymous login and allowing local users where set in /etc/vsftpd.conf.
[cc lang=”bash”]anonymous_enable=NO
local_enable=YES
write_enable=YES[/cc]
But the ftp server still refused to let me login with any of the users on the system. I tried remove and reinstall, but the problem persisted. Finally I found a thread where others had the same problem. And here’s how to fix the problem.
[cc lang=”bash”]
sudo apt-get remove vsftpd
sudo rm /etc/pam.d/vsftpd
sudo apt-get install vsftpd
[/cc]
This fixed the problem for me. The only reason for me to have an ftp server on my machine is to do automatic updates of WordPress. The machine is behind a firewall so port 21 is not open to the world. For file upload I use sftp.
- Forum
- The Ubuntu Forum Community
- Ubuntu Specialised Support
- Ubuntu Servers, Cloud and Juju
- Server Platforms
- HELP! VSFTPD 530 Login incorrect.
-
HELP! VSFTPD 530 Login incorrect.
I’ve read a lot of post today but cannot solve my problem. Any expert can help?
I’ve installed vsftpd want to make user directory to /opt/lampp/htdocs/folder
Response: 220 Welcome to Test FTP service.
Command: USER myuser
Response: 331 Please specify the password.
Command: PASS ******
Response: 530 Login incorrect.
Error: Critical error
Error: Could not connect to serverThis is in my vsftpd.conf
Code:
chroot_local_user=NO chroot_list_enable=YES
myuser is in /etc/vsftpd/chroot_list, myuser is not in the blocked list
Followed the instruction in different post I’ve this in the conf file pam_service_name=vsftpd
I’m not sure if this is correct, I don’t have anything in this directory /etc/pam.d/ I created one with below and I’m not sure if this is right
Code:
# Standard behaviour for ftpd(8). auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed # Note: vsftpd handles anonymous logins on its own. Do not enable pam_ftp.so. # Standard pam includes @include common-account @include common-session @include common-auth auth required pam_shells.so
Please help!
-
Re: HELP! VSFTPD 530 Login incorrect.
Thread moved to the «Server Platforms» forum.
-
Re: HELP! VSFTPD 530 Login incorrect.
I narrowed down is the permission. At least I manage to set anonymous to the right place.
The last step is to make my user to the same directory as the anonymous.