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

Thanks

link|improve this question
feedback

1 Answer

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

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

Your Answer

 
or
required, but never shown

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