March
24
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.
The solution(s):
1. Use anonymous@domain.com and any password instead of just anonymous
…OR
2. Assign the Cpanel user a dedicated IP address where FTP logins with just “anonymous” will work.
I tried Solution 1. Didn’t work. Checking with the host admin for some help.
Points about solution 1.
1) How do you specify the domain twice in a browser on a URL like ftp://user:pwd@domain:port ?
2) Can you single-quote or double-quote [user] and [pwd]?
Feel free to respond to my email directly and delete my comment.
>>1) How do you specify the domain twice in a browser on a >>URL like ftp://user:pwd@domain:port ?
ftp://user%40yourdomain:pwd@yourdomain:port