You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Prakash Velayutham <pr...@cchmc.org> on 2010/05/20 20:46:08 UTC

Using * in AuthzSVNAccessFile file

Hi,

Is it possible to use '*' in the path portion of a AuthzSVNAccessFile.

Like

[repo:/folder1/*/*/bc]
@group1 = rw
@group2 = r
@admin = rw

Would this work? In the redbook, it only talks about using '*' for the  
user/group portion, not the path.

Thanks,
Prakash

RE: Using * in AuthzSVNAccessFile file

Posted by Andrea Antonio Maleci <A....@iwbank.it>.
You can use svnperms.py on pre-commit hook, which allows regular expressions.
You can’t use groups from your svn_access_file: you have to redefine your allowed users and groups on svnperms.conf file.

Hope this helps,
Andrea


From: Sarah George [mailto:sarah.george@gmail.com]
Sent: martedì 25 maggio 2010 4.14
To: Johan Corveleyn
Cc: vishwajeet singh; Prakash Velayutham; users@subversion.apache.org
Subject: Re: Using * in AuthzSVNAccessFile file


You can’t put in arbitrary wildcards, but you don’t have to specify a repository.

If you use one project per repository (which I highly recommend), then you can just define

[/trunk/passwords]
*=

or similar to set up permissions for the same path in all projects.

— Sarah
Codesion.com



On 21 May 2010 18:05, Johan Corveleyn <jc...@gmail.com>> wrote:
On Thu, May 20, 2010 at 10:48 PM, vishwajeet singh <de...@gmail.com>> wrote:
>
>
> On Fri, May 21, 2010 at 2:16 AM, Prakash Velayutham
> <pr...@cchmc.org>> wrote:
>>
>> Hi,
>>
>> Is it possible to use '*' in the path portion of a AuthzSVNAccessFile.
>>
>> Like
>>
>> [repo:/folder1/*/*/bc]
>> @group1 = rw
>> @group2 = r
>> @admin = rw
>>
>> Would this work? In the redbook, it only talks about using '*' for the
>> user/group portion, not the path.
>
>
>    Not it would not work.
FYI, there is an (open) enhancement request for this:
http://subversion.tigris.org/issues/show_bug.cgi?id=2662 - authz with wildcards

It seems that several patches were created for this, but for some
reason they were never committed. Maybe someone with interest in this
issue should try to take a look at those patches again, bring them up
on the dev list for review, ...

Cheers,
--
Johan


RE: Using * in AuthzSVNAccessFile file

Posted by Andrea Antonio Maleci <A....@iwbank.it>.
You can use svnperms.py on pre-commit hook, which allows regular expressions.
You can’t use groups from your svn_access_file: you have to redefine your allowed users and groups on svnperms.conf file.

Hope this helps,
Andrea


From: Sarah George [mailto:sarah.george@gmail.com]
Sent: martedì 25 maggio 2010 4.14
To: Johan Corveleyn
Cc: vishwajeet singh; Prakash Velayutham; users@subversion.apache.org
Subject: Re: Using * in AuthzSVNAccessFile file


You can’t put in arbitrary wildcards, but you don’t have to specify a repository.

If you use one project per repository (which I highly recommend), then you can just define

[/trunk/passwords]
*=

or similar to set up permissions for the same path in all projects.

— Sarah
Codesion.com



On 21 May 2010 18:05, Johan Corveleyn <jc...@gmail.com>> wrote:
On Thu, May 20, 2010 at 10:48 PM, vishwajeet singh <de...@gmail.com>> wrote:
>
>
> On Fri, May 21, 2010 at 2:16 AM, Prakash Velayutham
> <pr...@cchmc.org>> wrote:
>>
>> Hi,
>>
>> Is it possible to use '*' in the path portion of a AuthzSVNAccessFile.
>>
>> Like
>>
>> [repo:/folder1/*/*/bc]
>> @group1 = rw
>> @group2 = r
>> @admin = rw
>>
>> Would this work? In the redbook, it only talks about using '*' for the
>> user/group portion, not the path.
>
>
>    Not it would not work.
FYI, there is an (open) enhancement request for this:
http://subversion.tigris.org/issues/show_bug.cgi?id=2662 - authz with wildcards

It seems that several patches were created for this, but for some
reason they were never committed. Maybe someone with interest in this
issue should try to take a look at those patches again, bring them up
on the dev list for review, ...

Cheers,
--
Johan


Re: Using * in AuthzSVNAccessFile file

Posted by Sarah George <sa...@gmail.com>.
You can’t put in arbitrary wildcards, but you don’t have to specify a
repository.

If you use one project per repository (which I highly recommend), then you
can just define

[/trunk/passwords]
*=

or similar to set up permissions for the same path in all projects.

— Sarah
Codesion.com




On 21 May 2010 18:05, Johan Corveleyn <jc...@gmail.com> wrote:

> On Thu, May 20, 2010 at 10:48 PM, vishwajeet singh <de...@gmail.com>
> wrote:
> >
> >
> > On Fri, May 21, 2010 at 2:16 AM, Prakash Velayutham
> > <pr...@cchmc.org> wrote:
> >>
> >> Hi,
> >>
> >> Is it possible to use '*' in the path portion of a AuthzSVNAccessFile.
> >>
> >> Like
> >>
> >> [repo:/folder1/*/*/bc]
> >> @group1 = rw
> >> @group2 = r
> >> @admin = rw
> >>
> >> Would this work? In the redbook, it only talks about using '*' for the
> >> user/group portion, not the path.
> >
> >
> >    Not it would not work.
>
> FYI, there is an (open) enhancement request for this:
> http://subversion.tigris.org/issues/show_bug.cgi?id=2662 - authz with
> wildcards
>
> It seems that several patches were created for this, but for some
> reason they were never committed. Maybe someone with interest in this
> issue should try to take a look at those patches again, bring them up
> on the dev list for review, ...
>
> Cheers,
> --
> Johan
>

Re: Using * in AuthzSVNAccessFile file

Posted by Johan Corveleyn <jc...@gmail.com>.
On Thu, May 20, 2010 at 10:48 PM, vishwajeet singh <de...@gmail.com> wrote:
>
>
> On Fri, May 21, 2010 at 2:16 AM, Prakash Velayutham
> <pr...@cchmc.org> wrote:
>>
>> Hi,
>>
>> Is it possible to use '*' in the path portion of a AuthzSVNAccessFile.
>>
>> Like
>>
>> [repo:/folder1/*/*/bc]
>> @group1 = rw
>> @group2 = r
>> @admin = rw
>>
>> Would this work? In the redbook, it only talks about using '*' for the
>> user/group portion, not the path.
>
>
>    Not it would not work.

FYI, there is an (open) enhancement request for this:
http://subversion.tigris.org/issues/show_bug.cgi?id=2662 - authz with wildcards

It seems that several patches were created for this, but for some
reason they were never committed. Maybe someone with interest in this
issue should try to take a look at those patches again, bring them up
on the dev list for review, ...

Cheers,
-- 
Johan

Re: Using * in AuthzSVNAccessFile file

Posted by vishwajeet singh <de...@gmail.com>.
On Fri, May 21, 2010 at 2:16 AM, Prakash Velayutham <
prakash.velayutham@cchmc.org> wrote:

> Hi,
>
> Is it possible to use '*' in the path portion of a AuthzSVNAccessFile.
>
> Like
>
> [repo:/folder1/*/*/bc]
> @group1 = rw
> @group2 = r
> @admin = rw
>
> Would this work? In the redbook, it only talks about using '*' for the
> user/group portion, not the path.
>

   Not it would not work.


>
> Thanks,
> Prakash
>



-- 
Vishwajeet Singh
+91-9657702154 | dextrous85@gmail.com | http://bootstraptoday.com
Twitter: http://twitter.com/vishwajeets | LinkedIn:
http://www.linkedin.com/in/singhvishwajeet