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

Re: AW: Unable to delete directory in repository, server version 1.7.1

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 10 Nov 2011 17:25:27 +0000

"Jens Geyer" <jgx_at_vsx.net> writes:

> I can confirm that.
> Deleting is only possible if the user has write permnissions on the
> ENTIRE path.
>
> / top/subdir/mypath
>
> In order to delete mypath, the user needs write permission on
>
> /
> /top/subdir
> /top/subdir
> /top/subdir/mypath
>
> With an 1.6.x server, write access to /top and above were not necessary.
>
> I could not find any documentation about this changed behavior. Next, it
> is not really what we want. I don't want to give all users write access
> on the entire tree up to the rootfolder just to enable them to svn
> delete their own files and folders.

I can't reproduce this, or your other authz problem, on my Linux
machine:

$ cat repo/conf/svnserve.conf
[general]
auth-access = write
anon-access =
password-db = passwd
authz-db = authz

$ cat repo/conf/authz
[/A/B]
pm = rw
[/]
* = r

$ svn ls -R --username pm svn://localhost/repo
A/
A/B/
X/
X/Y/

$ svn cp -mm --username pm svn://localhost/repo/X/Y svn://localhost/repo/A/B/C
Committed revision 12.

$ svn rm -mm --username pm svn://localhost/repo/A/B/C
Committed revision 13.

$ svn rm -mm --username pm svn://localhost/repo/A/B
svn: E220004: Access denied

$ svn cp -mm --username pm svn://localhost/repo/X/Y svn://localhost/repo/A/C
svn: E220004: Access denied

I wonder if there is an upper/lower case problem somewehere in your
authz file? Or perhaps in the Subversion authz code?

-- 
Philip
Received on 2011-11-10 18:26:12 CET

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.