Server Fault is a question and answer site for system and network administrators. 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

How do I give all users in the group ftp-users full read/write acces to /var/www recursively?


share|improve this question
up vote 1 down vote accepted

'adds /var/www to ftp-users group

chgrp -R ftp-users /var/www

'sets group read/write access

chmod -R g+rw /var/www

share|improve this answer
Beautiful. Thanks! – Hutch Mar 16 '11 at 17:55
I would have also added the command: find /var/www -type d -print | xargs chmod +s so that new files created in the future would have the same group membership. Mind you there is no inheritance in Linux for permissions after being initially set. – mdpc Mar 16 '11 at 19:00

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.