Home » Questions » Computers [ Ask a new question ]

Correctly configuring file permissions in Ubuntu for FTP access

Correctly configuring file permissions in Ubuntu for FTP access

I am trying to setup a LAMP stack on my Ubuntu box. Apache, PHP and MySQL work and I have installed proftpd for FTP access to my www/ folder. The problem is, I'm not sure how to configure the permissions so that I have full access to that entire folder and all its files AND all the future files I dump in there.

Asked by: Guest | Views: 245
Total answers/comments: 1
Guest [Entry]

"You will have to change the umask for proftpd.

The configuration file is located under /etc/proftpd.conf or /usr/local/etc/proftpd.conf depending on your install, and it uses Apache-like directives (full details found here). For a specific directory you can use a <Directory> block directive in the configuration file pointing to your www folder.

In there, ensure you have a umask directive like so:

<Directory /var/www>
umask 0000
</Directory>

Remember, the umask is the value subtracted from 777 to create the default permission for a new folder, and 666 for files (no execute bit by design)."