Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

When I run:

svn co http::// --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

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

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

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

Your Answer


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.