pure-ftpd Can’t change directory to /var/ftp/
The problem arises when a user attempts to make an anonymous FTP connection to Cpanel user’s account who has already enabled anonymous FTP connections in their control panel. However, pure-ftpd drops you with the error “421 Can’t change directory to /var/ftp/”.
workstation:~ user$ ftp testing.com Connected to testing.com. 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 3 of 50 allowed. 220-Local time is now 11:02. Server port: 21. 220-IPv6 connections are also welcome on this server. 220 You will be disconnected after 15 minutes of inactivity. Name (testing.com:user): anonymous 421 Can't change directory to /var/ftp/ [/] ftp: Login failed.
1. Use firstname.lastname@example.org and any password instead of just anonymous
2. Assign the Cpanel user a dedicated IP address where FTP logins with just “anonymous” will work.