Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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.

share|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.)

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .