Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-02-2009, 12:00 PM   #1
Registered: Dec 2004
Distribution: Ubuntu 19.04 on Lenova ThinkPad T440
Posts: 138

Rep: Reputation: 28
What permissions to set on SVN repository directory?

Hi folks,

I created an SVN repository in /usr/local/svn. I chose this location in part based on what I learned at regarding the intended use of standard "Unix" directories.

The permissions of that whole hierarchy (/usr and below) are
drwxr-xr-x@ 12 root  wheel  ....
I'm accessing SVN locally. So, when I use any svn command I get a permissions error such as that below:

$ svn import myProject file:///usr/local/svn/myProject 
svn: Can't open file '/usr/local/svn/db/txn-current-lock': Permission denied
My questions are:
  • What permissions should I set for the directory /usr/local/svn?
  • Should I install the svn commands setuid root instead of changing the permissions on /usr/local/svn?
  • Should I just place the SVN repository in a different location?

I know I can just do #3 and everything will be ok. However, I would like to understand "the right" way to do it. :-)

Many thanks,
Old 11-02-2009, 02:57 PM   #2
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22

If you use SVN as a local repository, the user you use must have read AND write access to the complete repository. Be sure to chown recursively!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Root can't chgrp or set permissions on directory? gregorian Linux - Newbie 16 05-28-2008 12:11 AM
how to set Samba directory / share permissions rwtreke Linux - General 2 02-16-2006 03:24 PM
How to permanently set permissions on all files created in a directory? BrianK Linux - General 8 06-24-2004 04:06 PM
directory permissions incorrectly set DutchBoy Linux - Security 3 01-05-2004 09:40 AM
How to set correct file/directory permissions pat.delaney Linux - Networking 5 12-02-2003 09:39 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration