Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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