views:

28

answers:

1

Currently, I am not able to commit with the SVN user I added. I tried by manually editing the svnserve.conf and passwd files. I did the following - Added a line harry = harrysecret in passwd - Uncommented the line password-db = passwd in svnserve.conf - Added a system user harry with password = harrysecret as follows:-

   useradd harry
   passwd harry

I am using svn+ssh protocol and am able to checkout, update but, while committing I am getting error

Commit failed - Can't create directory 'path/to/repository/db/transactions/1852-1.txn' Permission denied

But, with root user I am able to commit.

I searched google to find commands and found the following:-

sudo htpasswd -m /etc/subversion/svn-auth-file sally
New password: *******
Re-type new password: *******
Adding password for user sally 

(http://www.divvun.no/doc/infra/system/addsvn-users.html)

Did not work for me.

http://wiki.site5.com/SVN/Subversion_(SVN)_Setup_Guide#Setup_a_new_SVN_user_account

    cd ~
    mkdir .ssh
    chmod 700 .ssh
    touch .ssh/authorized_keys
    chmod 600 .ssh/authorized_keys

http://help.joyent.com/index.php?id=55&pg=kb.page

  • cd to the domain’s etc/ directory
  • with any text editor, edit ‘svn-access.conf’ by adding a ‘permission line’ for ‘newuser’ to an existing repository (repositories are created in webmin)
  • add a password for ‘newuser’ to the svn.basic.passwd file with bash$ htpasswd svn.basic.passwd newuser (it will prompt twice for the new password)

But, I do not have svn-access.conf in etc directory.

Please tell me sure shot ways to add users with all permissions. I need to instruct someone to do the same on a remote server.

Thanks,

Sandeepan

A: 

Hi, i never added a user in SVN. Did you tried CHMOD 777 for all rights?

Vasco Rinaldo
Oh man!!!! it was this issue. I did chmod 755.
sandeepan
You are welcome!
Vasco Rinaldo
chmod 770 sorry (group write permission), 775 still gives commit error
sandeepan
Like Vasco said, I verified that adding SVN users explicitly is not needed. Just adding system users, adding them to group and granting 770 permission to the group works. Am I correct? Why is it so? Anybody?
sandeepan