[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: authorization issue in svn using apache

From: Florian Seydoux <florianseydoux_at_gmail.com>
Date: Tue, 08 Jul 2008 11:37:07 +0200

sanjeev.kumarroy_at_wipro.com wrote:
> Hi,
> [...]
> However now I need to grant user level access to each of the directories
> within the repository.

hello,
before doing that, I strongly recommand that you first read the
'Do you really need path-based access control' section of the book:
http://svnbook.red-bean.com/nightly/en/svn.serverconfig.pathbasedauthz.html

> I am not sure how to grant "per directory access control" to users. I
> have successfully created a svn-auth-file which contains the username
> and passwords for all the users.
> [...]
> I am not able to get the
> "AuthzSVNAccessFile".
> [...]
> Please let me know if this file gets automatically created else if one
> has to create it manually for the configuration then please let me know
> what possible entries I need to put to it.

It's a file that you have to create "by hands", and as it can be used to
manage acess control of multiple repositories, I suggest to not put
it in the repo subdir (you can put it more or less where you want,
but it's better to have it on a part not "covered" by apache, ie. on
directory not covered by a Directory or Location section).
=> eg. /usr/local/subversion/accesscontrol

the syntax of this file is given on the (linked) doc

> <Location /svn>
> DAV svn
> SVNPath /usr/local/subversion/repository
AuthzSVNAccessFile /usr/local/subversion/accesscontrol
Satisfy Any
> Require valid-user
> AuthType Basic
> AuthName "Subversion Repository"
> AuthUserFile /usr/local/subversion/repository/conf/svn-auth-file
> </Location>

regards,

florian

-- 
--------------------------------------------------------------------
Seydoux Florian
http://www.spinx-technologies.com
--------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-08 11:37:42 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.