Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

Thanks

share|improve this question

1 Answer 1

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

 
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.