Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I run:

svn co http:://mysvnserver.com/trunk --username myuser

I get error:

svn: Can't create directory .svn': Permission denied

(I set folder permission to 755 with : chmod -R 755 + umask 022, but I get error above)

What should I do?

share|improve this question
    
Please update your original question, do not create a new one if the original question has no answers or comments yet. –  Lekensteyn Mar 19 '11 at 21:18
add comment

3 Answers

Your command creates a directory named "trunk" in your current directory. You should have write permissions to that folder.

If you want to put the checkout in a different directory, pass it to the command:

svn --username myuser co http://host/trunk targetdirectory

trunk will be located at targetdirectory/trunk.

share|improve this answer
    
what should I do for avoid creation of trunk directory? –  Yosef Mar 19 '11 at 21:54
    
which permission should I set to my folder? –  Yosef Mar 19 '11 at 22:08
    
what das ls -la . says? What does mkdir targetdirectory say? (both command in the shell in the containing directory) –  aatdark Mar 19 '11 at 22:26
    
Use the target directory . (current directory) to avoid creation of the directory trunk. If you checkout into your home folder, permissions are usually fine. Otherwise, you need to give yourself write permissions. Can you post the current directory and the output of ls -dl .? –  Lekensteyn Mar 20 '11 at 8:52
    
Thanks but ,the error said about problem to create .svn folder and not trunk. no trunk folder created –  Yosef Mar 20 '11 at 22:48
add comment

somebody else help me already, I just need to be the owner of folder instead root

chown -R youruser:youruser /path/to/svn/working/dir
share|improve this answer
add comment

I got the same problem. In my case when I did ls -la on /svnrepo y figured out that all files and directories were owned by root:root

So I simply made:

sudo chown -R myuser:mygroup /svnrepo

and it did it for me ;)

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.