Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Oct 10, 2008 1:32 am 
Offline
Junior Member

Joined: Tue May 20, 2008 3:00 am
Posts: 37
Hello,

I've been following this guide (http://www.daniel-skinner.co.uk/setup-s ... 06/01/2008) to setup an Subversion repository via apache. (I skipped the Trac part). The repository is accessable via web due the modules 'dav_svn_module' and 'authz_svn_module'.

I tried editing the svn-acl-conf file to have guests or anonymous users read access only. Since that's what I'm trying to achieve.

I've got three users now, two developers and one guest account. It works as it should, two with read write rights and one with read only.

Only I want the 'guest' account to be used without logging in via web. Is this possible or am I better off with just a normal subversion repository without Apache?

Thanks :)


Top
   
 Post subject:
PostPosted: Fri Oct 10, 2008 1:48 am 
Offline
Junior Member
User avatar

Joined: Sat Sep 06, 2008 5:43 pm
Posts: 21
Location: Los Angeles, CA
According to the guide you are following you should have something very similiar to this in your httpd.conf.

Code:
<Location /svn/<project>>
   DAV svn
   SVNPath /srv/svn/<project>
   AuthType Basic
   AuthName "<project> Repository"
   AuthzSVNAccessFile /srv/svn/svn-acl-conf
   AuthUserFile /srv/svn/<project>.htpasswd
   Require valid-user
</Location>


The block requires a valid user for any access to the /svn/<project> URL. You can enclose the "Require valid-user" statement inside a "Limit" or "LimitExcept" block to control what type of HTTP operations are allowed.

In general for read only access you need to allow GET, PROPFIND, OPTIONS, and REPORT. So we can enclose your "Require" statement inside a "LimitExcept" block.

So you should replace what you have with...

Code:
<Location /svn/<project>>
   DAV svn
   SVNPath /srv/svn/<project>
   AuthType Basic
   AuthName "<project> Repository"
   AuthzSVNAccessFile /srv/svn/svn-acl-conf
   AuthUserFile /srv/svn/<project>.htpasswd
   # For any operations other than these, require
   # an authenticated user.
   <LimitExcept GET PROPFIND OPTIONS REPORT>
       Require valid-user
   </LimitExcept>
</Location>

_________________
Chet Burgess


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group