[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion: existing users

From: Andy Levy <andy.levy_at_gmail.com>
Date: Thu, 21 Jul 2011 08:24:19 -0400

On Thu, Jul 21, 2011 at 08:18, Andy Canfield <andy.canfield_at_pimco.mobi> wrote:
> On 07/21/2011 05:55 PM, Andy Levy wrote:
> On Thu, Jul 21, 2011 at 06:12, Andy Canfield <andy.canfield_at_pimco.mobi>
> wrote:
> I used root to create the /data/svn directory. Then, anticpiating problems,
> I did a chmod to make it writable to all.
> Giving global write permission will lead to problems as well.
> Different problems, but problems nonetheless.
> Later I ran svnadmin create /data/svn/sample and it created an entire
> repository directory tree under /data/svn. I don't remember but I probably
> ran it as root.
> I just now noticed that /data/svn/sample and all the sub-directories and
> files therein are owned by root and, usually, writable only by root. This is
> probably going to cause problems for Apache / mod_dav_svn which, of course,
> runs as the 'apache user' ("www-data") instead of root.
> Where did I go wrong? The manual talks about commands but does not seem to
> talk about what user is executing the command. Do I have to run svnadmin as
> www-data? Is there a way to create a repository using my browser?
> Your repository directory (the one you created with svnadmin create)
> should be owned by www-data (or whatever account your server process
> executes under). It doesn't matter whether you run svnadmin create as
> that user, or run it as another user and then change ownership.
> OK, restart again. The new commands to create the RepositoryParent directory
> are:
>     mkdir /data/svn
>     sudo chown www-data.www-data svn
> This results in
>     drwxr-xr-x 3 www-data www-data 4096 2011-07-21 19:01 /data/svn
> Here is the command I used to create a repository:
>     sudo -u www-data svnadmin create /data/svn/sample3
> Now we have
>     drwxr-xr-x 6 www-data www-data 4096 2011-07-21 19:01 /data/svn/sample3
>     -rw-r--r-- 1 www-data www-data  229 2011-07-21 19:01
> /data/svn/sample3/README.txt
> etc.
> When I point my browser to http://localhost/svn/sample3 I still get this
> short page:
>     sample3 - Revision 0: /
>     Powered by Subversion version 1.6.12 (r955767).
> so I still suspect that the browser interface is incapable of performing any
> action, including creating a repository, and is also incapable of giving me
> a list of repositories.

The browser interface is only for looking at the repository. You
cannot administer repositories in any way using the built-in browser
interface. Nor can you check out, lock files, or commit via a web
browser. This is explained in the book.
Received on 2011-07-21 14:25:35 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.