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)?

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted
usermod -a -G ftp user
chown -R :ftp /var/www/html
chmod -R g+w /var/www/html
link|improve this answer
Awesome, thanks! – Henk Dec 8 '11 at 11:18
feedback

Your Answer

 
or
required, but never shown

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