On Tue, 29 Dec 2009 08:41:09 +0000 Paul Grenyer paul.grenyer@gmail.com allegedly wrote:
I've installed vsftpd, obviously so that I can transfer files to it easily and although I can move .php files into the /var/www folder, it is of course owned by the www-data user, so the files transfered, when logged in as me, will not execute. After some googling I read that I can configure vsftpd to give the files the right permissions automatically on transfer, but I can't find out how?
Paul
If you are exposing this server to the big bad internet then I'd recommend against using any standard FTP server. It would be much better to use sftp. Not only is is /much/ more secure, it is also easier to configure all the relevant firewall settings (both on the server itself and on any port forwarding NAT hardware device you may have on your network connection).
So set up openSSH on the server (and disable root login). You may also care to move the SSH daemon to a non-standard port - that will at least cut down the number of attempted brute force attacks by botnets (and reduce the number of log entries...)
Mick
---------------------------------------------------------------------
The text file for RFC 854 contains exactly 854 lines. Do you think there is any cosmic significance in this?
Douglas E Comer - Internetworking with TCP/IP Volume 1
http://www.ietf.org/rfc/rfc854.txt ---------------------------------------------------------------------