I spent long time looking for a solution, I’ve tried every shared answer on the internet and nothing could solve the issue. It is an issue I was ignoring for years and I never could fix.
Ok, I’ve Plesk installed and I’m not sure if it has some effect on IIS FTP to do the following behavior …
Using Process Monitor tool, and making ftp login request and watching the tool and doing your investigation using this tool, you can get a hint about the REAL reason of the problem.
For me, I found out that IIS FTP was trying to access the ftp folder from a path DIFFERENT than the actual ftp path I’ve set, I do not know why, but maybe Plesk has some effect on this.
The actual ftp path is
C:inetpubvhostszidapp
The path that IIS FTP was trying to access DURING the login process is
C:inetpubvhostsServers7localuserzid_app_ftp_user
I fixed the issue by creating a folder link from ‘actual’ folder path to the path IIS was trying to access — using the tool mklink tool
CMD command
mklink /d C:inetpubvhostsServers7localuserzid_app_ftp_user "C:inetpubvhostszidapp"
I’ve fixed the issue that way, so wen FTP is trying to access the folder from the wrong path, it is now goes to the correct one.
Please note doing folder shortcut wont work for this, you need a link like linux, not a shortcut …
I hope it will help you
While trying to connect to your FTP server hosted by IIS, you may run into “530 User cannot log in, home directory inaccessible” error. This error occurs whether you are using anonymous access or basic authentication.
A sample connection log from an FTP client:
530 User cannot log in, home directory inaccessible.
Critical error: Could not connect to server
This issue may appear as “Failed to retrieve directory listing” or “Home directory inaccessible” error as well.
Depending on the FTP client, you may not see the detailed error message right away. For instance, when I tried to connect to the same site with the same configuration by using WinSCP, I received “Access Denied” error. If your FTP client doesn’t show the entire connection history, look for the log folder to get more information about the root cause.
Solution
There might be a few reasons for running into this error. Here are the most common root causes and their solutions:
- The user may not be have access to the home directory. Go to “IIS > FTP site > FTP User Isolation”. Select the directory that your users can access. More information about User Isolation settings
- IIS may not be configured to use passive mode FTP. There are two types of FTP connections: Active mode and passive mode. In active mode, the client opens a port. The server connects to this port for transferring data. In passive mode, the server opens a port. The client connects to this port to transfer data. In order to use passive mode, enter a port range and IP address in “IIS > Server name > FTP Firewall Support” page
Note: You can configure your FTP client to use only the active mode if you don’t want to turn on passive mode
Less common reasons for 530 error
The items below may cause “530 User cannot log in, home directory inaccessible” as well.
- Authorization rules. Make sure to have an Authorization rule that allows the user or anonymous access. Check “IIS > FTP site > FTP Authorization Rules” page to allow or deny access for certain or all users.
- NTFS permissions. The FTP users (local or domain users) should have permissions on the physical folder. Right click the folder and go to Properties. In the Security tab, make sure the user has required permissions. You can ignore Shared tab. It is not used for FTP access.
- Locked account. If you local or domain account is locked or expired, you may end up seeing “User cannot log in” error. Check local user properties or Active Directory user settings to make sure the user account is active.
- Other permission issues. The user account may not have “Log on locally” or “Allow only anonymous connections security” rights.
If you are still seeing the issue, check IIS and FTP logs (c:inetpublogsLogFilesFTPSVC2) but don’t let it mislead you. IIS logs sometimes may show PASS. It doesn’t mean everything is well. It’s better to check FTP logs that IIS records for FTP connections
Note: In a case with “Connection closed by the server” error for FTP connection, we determined the root cause as the corruption of system files occurred during in-place server upgrade.
Во время работы в FTP-клиенте могут возникать различные ошибки. Разберем самые распространённые и расскажем, как их устранить.
Ошибка 530 Login incorrect
Означает, что логин или пароль к FTP введены неверно. Возможно, допущена опечатка при введении. Например, при копировании из мессенджера или блокнота часто вместе с паролем или логином захватывается пробел — удалите его.
В крайнем случае можно посмотреть ваш логин и пароль в панели управления хостингом. Есть хостинги, где нельзя увидеть текущий пароль — тогда просто смените его на новый.
Также эта ошибка может возникать, если при создании FTP-пользователя вы указали несуществующий каталог. Измените его на реальный.
Ошибка 530 User denied by access rules
Возникает, если у вашего хостера включена защита по IP-адресам — вашего адреса нет в списке разрешенных подключений. Чтобы подключиться к серверу, необходимо добавить IP-адрес в этот список.
Ошибка Bad IP connecting
Означает, что IP-адрес, с которого вы устанавливали соединение по FTP, изменился. Если вы не заказывали у своего провайдера интернета статический IP-адрес — по умолчанию предоставляется динамический, и он может в любой момент поменяться.
Для исправления ситуации перезагрузите роутер или отключите/включите интернет-соединение на ПК. Также, возможно, потребуется добавить этот новый IP в список разрешенных для подключения на хостинге.
Количество FTP-пользователей превышено
Эта ошибка возникает, когда вы пытаетесь создать нового FTP-пользователя. Означает, что вы превысили максимальное количество FTP-аккаунтов. Это ограничение может быть выставлено на вашем тарифе или в целом у хостера. Для исправления:
- используйте для подключения уже существующего незанятого пользователя, просто сменив ему пароль;
- удалите неиспользуемые FTP-аккаунты и создайте вместо них новый;
- повысьте ваш тарифный план.
Файлы загружаются «битыми», искаженными
Если после загрузки скрипта на сервер он не работает, или картинка передается в искаженном виде — скорее всего вы выставили неправильный режим передачи.
FTP-клиенте есть 3 режима передачи файлов:
- автоматический (клиент сам выбирает режим передачи);
- ASCII — в файле принудительно приводятся к единому виду символы окончания строки. Подходит для текстовых файлов;
- двоичный — файл передается как есть. Подходит для скриптов, изображений.
Иногда авторежим работает некорректно; тогда нужно выставить режим передачи принудительно. Если не уверены, какой режим выбрать — выставьте двоичный.
FTP медленно работает
Для исправления ситуации попробуйте следующие способы:
Переключитесь на пассивный режим передачи файлов. А иногда, наоборот, помогает переключение на активный. Отключите шифрование TLS — вместо этого пропишите в этом поле «обычный FTP». Подключитесь не по FTP, а по SFTP. Для этого в настройках FileZilla (или другого клиента) в поле «Протокол» укажите SFTP. Данные для подключения уточните у хостера.
- Печать
Страницы: [1] 2 Все Вниз
Тема: curlftpfs что неправильно делаю (Прочитано 5359 раз)
0 Пользователей и 1 Гость просматривают эту тему.
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
maks09
захотел подключить ftp-сайт с помошью curlftpfs. В terminal пишу curlftpfs ftp://[мой_логин]:[мой пароль]@[ftp-сайт] iso/
Что неправильно делаю???
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
AnrDaemon
Для начала — в чём проблема?
Хотите получить помощь? Потрудитесь представить запрошенную информацию в полном объёме.
Прежде чем [Отправить], нажми [Просмотр] и прочти собственное сообщение. Сам-то понял, что написал?…
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
maks09
После выполнения команды выдает следующее:
Error connecting to ftp: Access denied: 530
Из-за чего ошибка?
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
kostryukov
захотел подключить ftp-сайт с помошью curlftpfs. В terminal пишу curlftpfs ftp://[мой_логин]:[мой пароль]@[ftp-сайт] iso/
Что неправильно делаю???
iso/ чойто ?
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
maks09
iso/ чойто ?
папка куда все это дело должно по идее монтироваться
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
AnrDaemon
1. Полный путь к папке укажи…
2. Проверь, что ftp с этим логином/паролем вообще подключается.
Хотите получить помощь? Потрудитесь представить запрошенную информацию в полном объёме.
Прежде чем [Отправить], нажми [Просмотр] и прочти собственное сообщение. Сам-то понял, что написал?…
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
maks09
Полный путь указывал, не получается, а логин и пароль к моей системе.
С ними ничего не подключается кроме моих девайсов
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
kostryukov
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
maks09
Пишу
curlftpfs ftp://[имя_пользователя_моего_ноута]:[пароль_данного_пользователя]@mirror.yandex.ru /media/iso
Выводит
Error connecting to ftp: Access denied: 530
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
kostryukov
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
Mam(O)n
ftp://[имя_пользователя_моего_ноута]:[пароль_данного_пользователя]@mirror.yandex.ru /media/iso
Зачем яндексу имя и пароль твоего ноута??
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
maks09
Если я правильно понял, то мне надо узнать логин и пароль серверов яndexa.
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
AnrDaemon
Я с вас шатаюсь… ты чего сделать то пытаешься? А то на слепого кутёнка похожь — тычешься мимо двери, всё без толку.
Хотите получить помощь? Потрудитесь представить запрошенную информацию в полном объёме.
Прежде чем [Отправить], нажми [Просмотр] и прочти собственное сообщение. Сам-то понял, что написал?…
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
athost
Для попадания на любой АНОНИМНЫЙ FTP, коим mirror.yandex.ru и является, надо вводить логин anonymous или ftp, а пароль любой емайл, лишь бы @ была.
Ваш К.О.
Пользователь решил продолжить мысль 28 Февраля 2010, 08:58:12:
И потом нихрена не понятно, зачем яндекс монтировать в файловую систему
« Последнее редактирование: 28 Февраля 2010, 10:58:42 от athost »
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
Mam(O)n
Для попадания на любой АНОНИМНЫЙ FTP, коим mirror.yandex.ru и является, надо вводить логин anonymous или ftp, а пароль любой емайл, лишь бы @ была.
Трудно назвать хоть одну программу, которая этого бы не подставляла логин anonymous или ftp в случае, когда пользователь не указывал бы логин и пароль. Curlftp не исключение и
cd ~
работает на ура.
mkdir iso
curlftpfs ftp://mirror.yandex.ru iso
Ваш А. Я. П.
- Печать
Страницы: [1] 2 Все Вверх
I’ve been tasked with setting up an FTP directory for a client of ours. I’m working from a Windows 2008 Server with IIS 7 installed.
To create the FTP user directory I’ve followed this eHow tutorial.
The FTP site is already set up on IIS 7, so I skipped that bit and followed the rest exactly. However, when I try to connect via FileZilla, I get the following errors:
Status: Connecting to xxx.xx.xx.xx:21... Status: Connection established, waiting for welcome message... Response: 220 Microsoft FTP Service Command: USER userFTP Response: 331 Password required for userFTP. Command: PASS ******** Response: 530 User cannot log in, home directory inaccessible. Error: Critical error Error: Could not connect to server
I’ve double checked the permissions of the user and everything appears to be as it should. If anyone has any advice, I’d be so grateful.
asked Oct 14, 2010 at 11:26
4
It’s not clear to me from reading your post and the link you provided as to whether or not you’re using user isolation. My suggestion would be to determine whether or not you want to use user isolation or not and then start from scratch.
Here’s a link that may help:
http://learn.iis.net/page.aspx/305/configuring-ftp-75-user-isolation/
answered Oct 14, 2010 at 12:39
joeqwertyjoeqwerty
109k6 gold badges80 silver badges171 bronze badges
3
I just hit this issue and for anyone googling the error would like to add the solution that worked on Windows Server 2012 IIS 8.0. It was very simple in the end you have to create a LocalUser
folder in the FTP root you specified when creating the FTP site. Then create your username folders under this folder.
For e.g. D:ftp-rootLocalUseruser1
sebix
4,2632 gold badges26 silver badges45 bronze badges
answered Jun 10, 2015 at 17:49
ramjet666ramjet666
711 silver badge2 bronze badges
0
It is the user isolation setting.
You will need change it to «do not isolate users, start users in «user name directory» «
answered Jun 6, 2014 at 4:28
cherry Jeecherry Jee
611 silver badge1 bronze badge
1
Another cause of this error can be the use of FTP IPv4 Address and Domain Restrictions.
If your IIS FTP Site, or one of its parents including the Default site, is using IPv4 Address Restrictions then you’ll need to ensure that your IP address is allowed.
I had this same issue you’ve described, with the exact same Error returned to FileZilla. Here’s how I fixed it:
- Open the IIS Manager
- Click on the Sites > Default FTP Site settings
- Open FTP IPv4 Address and Domain Restrictions
- Ask Google what is my ip
- Add your public IP address to the allowed list under FTP IPv4 Address and Domain Restrictions
- Open Services from the Start Menu
- Find the Microsoft FTP Service in the Started Services list
- Restart the Microsoft FTP Service
answered Mar 8, 2017 at 23:51
We had the same issue . (530 user cannot log in, home directory inaccessible)The problem was a new opening (To allow more sessions) in our firewall allowed another IP to our FTP server (We have IP restrictions setup)
Solution was to add the IP to the IPRestrictions ALLOW LIST
answered Jan 28, 2020 at 18:04
Check the FTP logs recorded by IIS. The status and sub-status codes will give you more information about the issue. Here is a list of the status codes: The FTP status codes in IIS 7.0 and later versions
In my case, this issue occured because my IIS wasn’t configured for passive mode. After entering a port range and external IP address in FTP Firewall Support feature, the error message disappeared:
In this blog post, it mentions a few more root causes: 530 User cannot log in, home directory inaccessible
Authorization rules. Make sure to have an Authorization rule that allows the user or anonymous access. Check “IIS > FTP site > FTP Authorization Rules” page to allow or deny access for certain or all users.
NTFS permissions. The FTP users (local or domain users) should have permissions on the physical folder. Right click the folder and go to Properties. In the Security tab, make sure the user has required permissions. You can ignore Shared tab. It is not used for FTP access.
Locked account. If you local or domain account is locked or expired, you may end up seeing “User cannot log in” error. Check local user properties or Active Directory user settings to make sure the user account is active.
Other permission issues. The user account may not have “Log on locally” or “Allow only anonymous connections security” rights.
answered Feb 22, 2019 at 5:23
I had the exact same issue as the OP after adding a new user and associated user folder to an existing FTPS site. The solution in the end was simply to restart the site in IIS. After that I could connect with the new user account successfully.
answered Sep 29, 2021 at 9:21
Adding the following to this excellent source of unusual things that need to be checked:
When using ‘User name directory (disable global virtual directories)’ with local computer accounts The first folder in the FTP site should be ‘LocalUser’, this however experiences a problem when the machine has a computer name longer than 15 characters.
If that is the case:
Rename LocalUser to the first 15 characters of the computer name. Not sure if basic auth also had to be alerted to set the default domain as the same string, would be great if someone could test and revert.
PS: I was a little perplexed, when first setting this up, but with user isolation enabled (disabled global virtual directories) the FTP site’s first directory (LocalUser or the first 15 chars of the computer name, when longer) can either be a physical directory or a virtual directory, goes without saying that this is true for the username directories as well (no length limit on these).
answered Feb 5 at 11:54
You will need to verify the Physical Path of the FTP. Following is the steps to check.
Go to IIS.
Right, Click on Default FTP site. Manage FTP Sit >> Advance
Settings >> Physical Path.
It must be correct or you will find home directory inaccessible.
answered Dec 18, 2017 at 14:01
The Problem
Vsftp server is newly installed and has been brought up but can’t be accessed by certain users giving the error shown below.
# 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.
The Solution
The cause is that if the parameter userlist_enable in file /etc/vsftpd/vsftpd.conf is YES and the parameter userlist_deny default value is also YES, then the username in file /etc/vsftpd/user_list will get ‘530 Permission denied‘ error and does not even prompt for a password.
When parameter userlist_enable is enabled, vsftpd will load the usernames in file /etc/vsftpd/userlist_file. If a user tries to log in using a name in this file, they will be denied before they are asked for a password. This may be useful in preventing cleartext passwords being transmitted.
Parameter userlist_deny will be examined if userlist_enable is activated. If you set this setting to NO, then users will be allowed to login when they are listed in the file /etc/vsftpd/userlist_file.
Note: For security reason, userlist_enable should be set to “YES” as this issue can also be resolved by setting “userlist_enable=NO” in /etc/vsftpd/vsftpd.conf
So, we can resolve this issue by setting userlist_deny to NO when userlist_enable is activated. Then put the allowed usernames in file /etc/vsftpd/user_list and put the not allowed usernames in file /etc/vsftpd/ftpusers.
You can see the explanation from manual of vsftpd.conf.
$ man vsftpd.conf userlist_deny This option is examined if userlist_enable is activated. If you set this setting to NO, then users will be denied login unless they are explicitly listed in the file specified by userlist_file. When login is denied, the denial is issued before the user is asked for a password. userlist_enable If enabled, vsftpd will load a list of usernames, from the filename given by userlist_file. If a user tries to log in using a name in this file, they will be denied before they are asked for a password. This may be useful in preventing cleartext passwords being transmitted. See also userlist_deny. Default: NO
You can also see these comments in file /etc/vsftpd/user_list .
# vsftpd userlist # If userlist_deny=NO, only allow users in this file # If userlist_deny=YES (default), never allow users in this file, and # do not even prompt for a password. # Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers # for users that are denied.
Allowing a VSFTP Server local user to login
1. Edit /etc/vsftpd/vsftpd.conf and set userlist_enable to YES and userlist_deny to NO.
# vi /etc/vsftpd/vsftpd.conf userlist_enable=YES userlist_deny=NO
2. Modify /etc/vsftpd/user_list, put the user (user01) which is allowed to login in this file
# cat /etc/vsftpd/user_list user01
3. Put all users not allowed to ftp in /etc/vsftpd/ftpusers.
# cat ftpusers # Users that are not allowed to login via ftp root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody
4. Restart vsftpd service.
5. Try ftp again with user – user01.
$ 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): user01 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp>
6. Also try Login by disallowed userid, for example, root.
# 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>