How to disable FOG FTP passive mode?
-
@Single said in How to disable FOG FTP passive mode?:
Mb it can be helpful if I paste my vsftpd.conf here
You are kidding, right?!?! I have not tested this yet but I am fairly sure the config is causing the issue. If you had told us you have a modified config (different from what FOG generates for you) then we would have found the solution in no time.
chroot_local_user=YES secure_chroot_dir=/var/run/vsftpd/empty allow_writeable_chroot=YES
Pretty sure this is part of the issue. But there might be other config options as well.
Default config generated by FOG:
max_per_ip=200 anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_std_format=YES listen=YES pam_service_name=vsftpd userlist_enable=NO seccomp_sandbox=NO
-
I’ll check and let you know
Probably I was stupid but it was required to have more than one FTP user with different FTP folders in that server. -
@Single It’s all good, you are allowed to modify the config on your server to whatever you want. Just saying that letting us know right away would have saved you a lot of time.
-
@Sebastian-Roth Thx for your help, Sebatian!
I commented out linechroot_local_user=YES
And now everything is just fine about my FOG installation.
MB it makes sense to add into FOG wiki - that vsftpd option is incompatible to FOG.Now I need to find a way to chroot one user but not to chroot other, but it is definitely not a FOG problem. (And, it’s simple)
Thanks again.
Best regards!