I have a question concerning permissions.

I'm running lighttpd and a ftp server.

I want to add a ftp user that is able to upload files to /var/www, which then are viewable in a browser.

What is the safest way to set this up (apart from not using ftp)?

usermod -a -G ftp user
chown -R :ftp /var/www/html
chmod -R g+w /var/www/html
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.