vendredi 6 mars 2015

FTP straight to directory, rather than making it relative to FTP users home directory?


I've set up an FTP server using vsftpd on a Centos 5.10 machine. This is my target directory on the server:



/var/www/supercoolstuff


I can connect from a Windows XP machine using WinSCP then navigate to the above directory as long as I enter in the full path.



http://ift.tt/1w9QU6S


When I try to connect directly from Windows Explorer using the above line I receive this error:



550: Failed to change directory.


Looking in the /var/log/vsftpd/vsftpd.log file I can see that it is trying to change to the target directory relative to the FTP users home directory:



FTP response: Client "192.168.100.2", "200 NOOP ok."
FTP command: Client "192.168.100.2", "CWD/home/adambrown_ftp/var/www/supercoolstuff"
FTP response: Client "192.168.100.2", "550 Failed to change directory."


How can I allow the FTP user to connect directly to the target directory?



Aucun commentaire:

Enregistrer un commentaire