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

svn - query (permissions problem)

From: Max Kad <max_k03_at_yahoo.com>
Date: Thu, 15 May 2008 07:28:11 -0700 (PDT)

Hi there,

I've installed Subversion on the Linux platform with Apache 2.2.8 and mod_dav_svn.

I've created my repository as a root user.
I've created inside the repository the folders: trunk, branches, and tags
I imported to the repository as the "root user" to the trunk folder the file /temp/testfile.txt (using the file:///) - it worked

I'm getting the following error when I'm trying to import using as a root user (http://)

$ svn import /temp http://svn.example.com/svn/repos/trunk -m "Initial import"
Authentication realm: <http://svn.example.com:80> Subversion repository
Password for 'root':
svn: Can't create directory '/MyFolder/svn/repos/db/transactions/1-1.txn': Permission denied
My configuration settings are:

<Location /svn/>
DAV svn
SVNParentPath /MyFolder/svn
SVNListParentPath on
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /MyFolder/access/svn-auth-file
Require valid-user

I've created a new group - called svnusers.
I've added apache and several more users to the svnusers group.
I've changed the owner recursively inside the repository to apache.
I've changed the group recursively inside the repository to svnusers.
I've added to the group the permission to write recursively - chmod g+w /myfolder/svn/repos -R
I'm able to "check out" as one of the group's users to my "working copy" I was able to edit the file.
(Each working copy located on the same server, it's the user's personal directory)

but when I tried to commit to the repository as one of the group users, I'm getting the following error message:

svn: Commit failed (details follow):
svn: Can't create directory '/soticsvn/svn/repos/db/transactions/1-1.txn': Permission denied
investigated the problem, and I found out that it might be SELinux (a
'security context') problem, but SELinux was always disabled.
(As mentioned here: http://subversion.tigris.org/faq.html#reposperms )

I seems more as a permission problem, but the owner of the repository's and the folders/files inside the repository is apache.

I need all the users in the group to be able to commit to the repository.

Hopefully someone will be able to help,

Thanks in advance,


Received on 2008-05-15 17:19:51 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.