[Eug-lug] Correct Apache User and Group for easy editing
Michael Miller
mike.mikemiller at gmail.com
Mon Aug 28 08:52:27 PDT 2006
You can always change your default group.
Mike Miller
On 8/27/06, Martin Kelly <aomighty at gmail.com> wrote:
> Well, doing chmod o+rwx is the easiest, but so insecure I've tried to
> avoid it. I have added myself to group www-data, but the problem with
> that is when I create files as my user it defaults to being owned by
> martin, not www-data and thus apache can't access them (without running
> a tedious chown -R www-data:www-data /var/www at least).
>
> Michael Miller wrote:
> > You could add your self to what ever group apache belongs too. You
> > could also chmod o+rwx as well.
> >
> > Mike Miller
> >
> > On 8/25/06, Martin Kelly <aomighty at gmail.com> wrote:
> >> I've been having a problem with my Apache setup in that I'm not sure
> >> what user I should run it under. The default is www-data, and I could
> >> just add myself to the www-data group and be able to edit it under my
> >> user (martin). The problem with that is that when I create files with my
> >> normal user, they will be owned by martin and thus inaccessible to
> >> Apache. I could just edit the files with the www-data user, but that is
> >> annoying in terms of syncing together various files (.vimrc and such)
> >> between /home/martin and /home/www-data.
> >>
> >> I attempted to have Apache run under the user martin by adding the
> >> following in my Apache config:
> >>
> >> User martin
> >> Group martin
> >>
> >> but when I try to have a script create a directory, for example, it
> >> returns "Permission Denied." This is Apache 2.0.55.
> >>
> >> Does anybody have a good solution for this? For example, is there a way
> >> to make all files created by me in /var/www owned by www-data instead?
> >>
> >> Thanks all.
> >> _______________________________________________
> >> EUGLUG mailing list
> >> euglug at euglug.org
> >> http://www.euglug.org/mailman/listinfo/euglug
> >>
> > _______________________________________________
> > EUGLUG mailing list
> > euglug at euglug.org
> > http://www.euglug.org/mailman/listinfo/euglug
> >
> _______________________________________________
> EUGLUG mailing list
> euglug at euglug.org
> http://www.euglug.org/mailman/listinfo/euglug
>
More information about the EUGLUG
mailing list