Thanks, I found out what the problem was. I had gssftp running at the same time as vsftpd. I just disabled gssftp from the services and it works fine now.