Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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