[CentOS] Groups

Todd slackmoehrle.lists at gmail.com
Mon Jan 31 17:03:09 UTC 2011


Hi Mark,



> >> With /var/www/html owned by root:root and me loggin in as 'jason' I
> >> cannot accomplish this. I don't allow root logins over ssh...
> <snip>
> >> Would I change /var/www/html/<my domain> owner to myid:mygroup? I am not
> >> sure the famifications of this and how Apache would behave, etc.
> >
> > The whole of /var/www can belong to myid:mygroup as long as the apache
> <snip>
>


> Not a great idea. Rather, I'd recommend that it be the apache user (apache
> or httpd, whichever you have it as, and have the directory of a group that
> you belong to (remember, you can have multiple secondary groups, like,
> say, group httpd), and make it group writeable.


I don't quite follow.

if I do a 'getent groups' I do have apache as a group.

So you are saying set the owner of /var/www/html<my domain> and all files
below to apache:apache and then add my personal id to the apache group?

-Jason


>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20110131/ea4f87eb/attachment.html>


More information about the CentOS mailing list