Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3456

Troubleshooting • FTP server config for anonymous and remote access

$
0
0
Hello All,

I'm following the instructions for FTP setup here :
https://pimylifeup.com/raspberry-pi-ftp/
Made some modifications to account for local names and desired anonymous access.

Yet, from other PC with win10 getting refused access (entering password -> press enter key):

Code:

C:\Windows\System32>ftp 192.168.11.188Connected to 192.168.11.188.220 (vsFTPd 3.0.3)200 Always in UTF8 mode.User (192.168.11.188:(none)): ftp331 Please specify the password.Password:500 OOPS: vsftpd: refusing to run with writable root inside chroot()500 OOPS: Connection closed by remote host.C:\Windows\System32>
I've tried setting allow_writeable_chroot=NO as NO, YES and commented out with no success.

Now having this config:

Code:

grep -v '#' /etc/vsftpd.conflisten=YESlisten_ipv6=NOanonymous_enable=YESanon_root=/media/usbdisk4T/ftplocal_enable=YESwrite_enable=YESlocal_umask=022anon_upload_enable=YESdirmessage_enable=YESuse_localtime=YESxferlog_enable=YESxferlog_file=/var/log/vsftpd.logconnect_from_port_20=YESchroot_local_user=YESallow_writeable_chroot=NOsecure_chroot_dir=/var/run/vsftpd/emptypam_service_name=vsftpdrsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pemrsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.keyssl_enable=NO
Zenmap is showing the ftp port:

Code:

Starting Nmap 7.95 ( https://nmap.org ) at 2024-06-19 12:03 Pacific Daylight TimeNmap scan report for 192.168.11.188Host is up (0.11s latency).Not shown: 91 filtered tcp ports (no-response)PORT     STATE SERVICE21/tcp   open  ftp22/tcp   open  ssh80/tcp   open  http139/tcp  open  netbios-ssn443/tcp  open  https445/tcp  open  microsoft-ds5900/tcp open  vnc6001/tcp open  X11:18000/tcp open  http-alt
RPI OS version:

Code:

cat /etc/os-releasePRETTY_NAME="Raspbian GNU/Linux 10 (buster)"NAME="Raspbian GNU/Linux"VERSION_ID="10"VERSION="10 (buster)"VERSION_CODENAME=busterID=raspbianID_LIKE=debianHOME_URL="http://www.raspbian.org/"SUPPORT_URL="http://www.raspbian.org/RaspbianForums"BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Could you help identify what's missing?

Thanks,
Gert

Statistics: Posted by Gert — Wed Jun 19, 2024 7:06 pm — Replies 6 — Views 102



Viewing all articles
Browse latest Browse all 3456

Trending Articles