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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

 
discard

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.