Take the tour ×  I have just installed a Ubuntu server that will
hold a lot of different websites for which I want to add a CMS
control panel.  For security reasons I will have all websites
being owned by, for example, site-x:site-x.  The CMS site is
owned by www-data:www-data and I need to add a silent permission
to all sites so that www-data:www-data can read and write to
their files... But they cannot read/write from each other or
www-data:www-data.  How can I set this up?  share|improve this
question add comment  2 Answers  up vote 1 down vote accepted
Why not add www-data into each of the other groups? So that www-
data is also a member of site-x group. (and site-y, site-z, etc)
You can do this via usermod: usermod -a -G site-x www-data will
add the user www-data to the site-x group. It can then write any
files site-x owns, that has the group write bit on.
share|improve this answer Cool, thank you :) –  Christoffer Mar
1 '10 at 8:13 add comment  However, adding www-data to sites
groups isn't really sec