I'm sorry my first post is asking for help but I have no idea what is wrong.
I've set up Apache, PHP, mySQL, PHPMyAdmin and VSFTPD, I set the user "ftp"'s home directory to /var/www/ and using sudo su I set it to 777 just to test for now. I've got the following lines active in my /etc/vsftpd.conf file:
Code:
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=NO
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
Now, when I first installed VSFTPD with the default settings I could connect and view the one index.html file but I could not delete or upload, after changing the settings to those above I can't even login... The username and password are correct but it says:
Code:
Status: Connecting to 192.168.0.2:21...
Status: Connection established, waiting for welcome message...
Response: 220 (vsFTPd 2.3.5)
Command: USER ftp
Response: 331 Please specify the password.
Command: PASS ***********
Response: 530 Login incorrect.
Error: Critical error
Error: Could not connect to server
However setting anonymous_enable=YES lets me view the directory but now instead of going to /var/www/ like it used to I just go to /
I've never used VSFTPD before so I'm kind of lost here, I've tried searching but the things people have said to try either make it worse or just don't help. So does anyone have any clue how I can just set the ftp user to read/write/delete anything in the /var/www/ folder and to work properly?