LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-02-2009, 01:00 PM   #1
rhimbo
Member
 
Registered: Dec 2004
Distribution: Kubuntu 24.04, KDE Plasma, Kernel version 6.8.0-40-generic (64-bit)
Posts: 210

Rep: Reputation: 29
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 www.pathname.org regarding the intended use of standard "Unix" directories.

The permissions of that whole hierarchy (/usr and below) are
Code:
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:

Code:
$ 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, 03:57 PM   #2
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
file

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!
 
  


Reply


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 01:11 AM
how to set Samba directory / share permissions rwtreke Linux - General 2 02-16-2006 04:24 PM
How to permanently set permissions on all files created in a directory? BrianK Linux - General 8 06-24-2004 05:06 PM
directory permissions incorrectly set DutchBoy Linux - Security 3 01-05-2004 10:40 AM
How to set correct file/directory permissions pat.delaney Linux - Networking 5 12-02-2003 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:30 PM.

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