I have vsftpd installed on ubuntu. I added a new created a new user and set the users home path to /var/www
so I can ftp with that user directly to that location. And that all works, I can now FTP with the user I created directly to that location. However I whenever I ftp, I have no permissions to change anything. How can I change that?
Thanks!!
UPDATE
OK, I set my user as the owner and confirmed the ownership. I even chmod the directory and its contents to 777 and verified that. I can make any change I want locally however I cannot make any changes via ftp. when using filezilla i get Critical file transfer error
I also get an error when trying to modify a file with dreamweaver via ftp.
I am new to linux so I don't have any idea what is going on.
I've used vsftpd on Ubuntu in the past, and by default it is locked down to prevent any kind of write access regardless of the permissions. To fix this you need to make sure the following line in
/etc/vsftpd.conf
is uncommented and then restart vsftpd:First, from a terminal window, edit the config file for vsftpd:
Or you can use gedit to alter the file if you prefer:
Then find the following section:
and change it to this (remove the # in front of the second line) and make sure it is set to YES:
And then restart your vsftpd process (or just reboot your computer):
And then you should have write access as long as your user has the correct permissions.
you need to switch ownership for /var/www to that user
Easy way is
chown -R user: /var/www
The -R handles everything below also