0

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

Thanks

Hutch
  • 103
  • 2

1 Answers1

1

'adds /var/www to ftp-users group

chgrp -R ftp-users /var/www

'sets group read/write access

chmod -R g+rw /var/www

rizzo0917
  • 84
  • 1
  • 4
  • 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