I've got subversion installed on my Ubuntu server. I usually do my development work under an account separate from root. However, in order to check in code, I need to be root or use the 'su' command 'su svn commit ....' How do I make it so I can check in code via my regular user account?

  • 1
    Just to clarify, so the svn repository is on the same machine on which you want to work? – Jonik Feb 16 '10 at 20:16
  • Yes, the repository is on the same machine that the work is done on. – user26767 Feb 16 '10 at 20:40
  • The repository probably has root only write access. Chmod 777 * – Josh K Feb 16 '10 at 21:08

If the repository is on the same server, then just changing the permissions of the repository folder/files to allow your user to write there should be more than enough.

Better yet, you can create group(s), to which you give write permission(s) on the repo, and add your user to one of them.

|improve this answer|||||

Make sure your non-root user has read&write access to the directory (and everything below it) where the svn repo is located.

Then, as the non-root user, simply check out a new working copy. You should be able to commit with simply svn commit.

If you want to keep using the existing working copy for some reason, one thing you could try is giving the non-root user rw access to everything under all .ssh directories with chown/chmod.

(Assuming here that the repository is on the same machine.)

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.