You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Bruno Costacurta <pu...@skynet.be> on 2006/12/30 17:43:48 UTC
Linux mask settings for Apache and http
Hello,
I'm looking for directions, howto about users,groups,umask ..etc.. settings
related to subversion for Apache and http under Linux platform.
I followed chapter 6 of 'Version Control with Subverion' but continue to
receive following errors about permissions denied :
...
svn: Commit failed (details follow):
svn: Can't create
directory '/usr/local/svn/repos/documents/db/transactions/70-1.txn':
Permission denied
....
as I commit file from the client to the repository server via http.
My current settings for /usr/local/svn/repos/documents/ are:
0755
user=bruno
group=svnuser
'svn info' returns :
Path: .
URL: http://pc34ghz:8080/svn/documents/cv/latest
Repository Root: http://pc34ghz:8080/svn/documents
Repository UUID: b4be9951-7f11-0410-bfeb-816af26c52fd
Revision: 70
Node Kind: directory
Schedule: normal
Last Changed Author: bruno
Last Changed Rev: 69
Last Changed Date: 2006-12-18 22:06:26 +0100 (Mon, 18 Dec 2006)
Thanks.
Bye,
Bruno
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Linux mask settings for Apache and http
Posted by Bruno Costacurta <pu...@skynet.be>.
On Sunday 31 December 2006 22:29, Andy Levy wrote:
> On 12/31/06, Bruno Costacurta <pu...@skynet.be> wrote:
> > On Sunday 31 December 2006 00:53, Matt Sickler wrote:
> > > no. only to $REPO/dav and $REPO/db does apache need write and read
> > >
> > > On 12/30/06, Konrad Rosenbaum <ko...@silmor.de> wrote:
> > > > On Saturday 30 December 2006 18:43, Bruno Costacurta wrote:
> > > > > My current settings for /usr/local/svn/repos/documents/ are:
> > > > > 0755
> > > > > user=bruno
> > > > > group=svnuser
> > > >
> > > > Does Apache run under the user "bruno"? If not: that is the problem.
> > > > Apache
> > > > needs write access to the whole repository.
> > > >
> > > >
> > > > Konrad
> >
> > Indeed I setup apache user in line with repository directories and it
> > works.
> >
> > Note: I still have some problems link to selinux which I disabled for
> > test. To resolv this I intend to simply move svn repositories to
> > /var/www/ to fit with http selinux securities.
>
> You aren't the first person to report clashes between Subversion and
> selinux policies. http://tinyurl.com/y96yh2 (google search on
> SVN-related mailing list archives)
>
Thanks for your attention.
Problems is now solved.
In fact when selinux is in mode enforcing the repository directory used by
apache need to be labelled with a context which httpd can write to.
By default this is the case under directory /var/www.
So I relocate subversion repository directory in a new directory created with
root and called /var/www/svn. Now svn is working with selinux enforcing.
Bye,
Bruno
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Linux mask settings for Apache and http
Posted by Andy Levy <an...@gmail.com>.
On 12/31/06, Bruno Costacurta <pu...@skynet.be> wrote:
> On Sunday 31 December 2006 00:53, Matt Sickler wrote:
> > no. only to $REPO/dav and $REPO/db does apache need write and read
> >
> > On 12/30/06, Konrad Rosenbaum <ko...@silmor.de> wrote:
> > > On Saturday 30 December 2006 18:43, Bruno Costacurta wrote:
> > > > My current settings for /usr/local/svn/repos/documents/ are:
> > > > 0755
> > > > user=bruno
> > > > group=svnuser
> > >
> > > Does Apache run under the user "bruno"? If not: that is the problem.
> > > Apache
> > > needs write access to the whole repository.
> > >
> > >
> > > Konrad
>
> Indeed I setup apache user in line with repository directories and it works.
>
> Note: I still have some problems link to selinux which I disabled for test. To
> resolv this I intend to simply move svn repositories to /var/www/ to fit with
> http selinux securities.
You aren't the first person to report clashes between Subversion and
selinux policies. http://tinyurl.com/y96yh2 (google search on
SVN-related mailing list archives)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Linux mask settings for Apache and http
Posted by Bruno Costacurta <pu...@skynet.be>.
On Sunday 31 December 2006 00:53, Matt Sickler wrote:
> no. only to $REPO/dav and $REPO/db does apache need write and read
>
> On 12/30/06, Konrad Rosenbaum <ko...@silmor.de> wrote:
> > On Saturday 30 December 2006 18:43, Bruno Costacurta wrote:
> > > My current settings for /usr/local/svn/repos/documents/ are:
> > > 0755
> > > user=bruno
> > > group=svnuser
> >
> > Does Apache run under the user "bruno"? If not: that is the problem.
> > Apache
> > needs write access to the whole repository.
> >
> >
> > Konrad
Indeed I setup apache user in line with repository directories and it works.
Note: I still have some problems link to selinux which I disabled for test. To
resolv this I intend to simply move svn repositories to /var/www/ to fit with
http selinux securities.
Bye,
Bruno
--
http://counter.li.org/
#353844
--
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Linux mask settings for Apache and http
Posted by Matt Sickler <cr...@gmail.com>.
no. only to $REPO/dav and $REPO/db does apache need write and read
On 12/30/06, Konrad Rosenbaum <ko...@silmor.de> wrote:
>
> On Saturday 30 December 2006 18:43, Bruno Costacurta wrote:
> > My current settings for /usr/local/svn/repos/documents/ are:
> > 0755
> > user=bruno
> > group=svnuser
>
> Does Apache run under the user "bruno"? If not: that is the problem.
> Apache
> needs write access to the whole repository.
>
>
> Konrad
>
>
>
Re: Linux mask settings for Apache and http
Posted by Konrad Rosenbaum <ko...@silmor.de>.
On Saturday 30 December 2006 18:43, Bruno Costacurta wrote:
> My current settings for /usr/local/svn/repos/documents/ are:
> 0755
> user=bruno
> group=svnuser
Does Apache run under the user "bruno"? If not: that is the problem. Apache
needs write access to the whole repository.
Konrad