Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st July 2009, 22:35
mmw mmw is offline
Junior Member
 
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default websvn access rights for individual repositories, FML

Hi all,

I'm having a lot of trouble getting websvn to give different SVN repositories different access rights. I would like "myRepo1" to require a username/password, and "myRepo2" to not require any authentication. FYI, I installed websvn using the Debian websvn HowTo article.

1) What is the location of the "svn access file" I should be using? My users connect to svn though SSH - all of us have accounts on my server. Does that mean I should be using /etc/passwd? I tried using "/etc/passwd" in my /etc/websvn/config.php file like so:
Code:
$config->useAuthenticationFile('/etc/passwd', '/var/svn-repos/myRepo1');
It complains about "/var/svn-repos/myRepo1" not existing..even though it does, so first of all, why does it not recognize SVN repo names?

Not to worry though, I can force websvn to detect my repository like so:
Code:
$config->addRepository('myRepo1', '/var/svn-repos/myRepo1');
But now when I load up websvn in my web browser I notice that there is NO authentication - i.e it never asks for my user/password. If I switch back to $config->parentPath in my config.php file I see the prompt for username/password, but it now requires authentication for BOTH repo1, and repo2...FML

2) Does my /etc/websvn/apache2.conf look OK?
Code:
# Configuration for websvn using php4.

Alias /websvn /usr/share/websvn

<Directory /usr/share/websvn>
  DirectoryIndex index.php
  Options FollowSymLinks
  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile /etc/passwd
  Order allow,deny
  Allow from all
  <IfModule mod_php4.c>
    php_flag magic_quotes_gpc Off
    php_flag track_vars On
  </IfModule>
</Directory>
Any help with this would be appreciated. Since websvn doesn't provide any kind of documentation it has been really frustrating trying to troubleshoot this

Thanks,
Mark
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig on a RaQ2 mattm Installation/Configuration 12 23rd January 2008 18:17
Backing Up Maildir Directories & Access Rights reinier Installation/Configuration 1 4th January 2007 15:42
User rights question. naruto General 7 29th August 2006 14:08
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26
Update to 2.2.0 question brianetilley Installation/Configuration 10 4th March 2006 17:02


All times are GMT +2. The time now is 20:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.