Cannot commit to svn - access denied

21,168

Solution 1

If you don't use an LDAP server you have to check this:

In your /path/to/the/project/conf/svnserve.conf check if you have something like:

anon-access = none
auth-access = none

You will have to change to use:

anon-access = none
auth-access = write
password-db = /path/to/passwd

then in your /path/to/the/project/conf/passwd

you can create your users:

user1 = password

If you are using an LDAP server please read these articles:

Maybe your password is expire or you don't have the full rights to commit.

Maybe these articles will help:

http://directory.fedoraproject.org/wiki/Howto:Subversion_Apache_LDAP

http://www.mylinuxtips.info/?p=7

Solution 2

You should check that

  • you have permission to write to the repository (ask the repository admin)
  • you committing using the username which was configured. By default Subversion uses the username you are using when issuing the command, but you can specify a different one with the --username option

    svn --username mysvnusername --message "added file1.php and file2.php and updated the bug #4123" file1.php file2.php gah.php
    

If you are the repository administrator check the log file of the Subversion Server to see what went wrong

Share:
21,168
Neil
Author by

Neil

Updated on July 09, 2022

Comments

  • Neil
    Neil almost 2 years

    I am working on a small project with SVN.

    I checked out the project:

    svn co http://mylocalserver/projectx/ .
    

    I made my changes (updated and added files):

    svn add file1.php, file2.php
    

    But then, every time I want to commit my changes using this command:

    svn commit -m "added file1.php and file2.php and updated the bug #4123" file1.php file2.php gah.php
    

    I get: Access is denied

    What can be the problem?