You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Jan Mönnich <Ja...@newtron.net> on 2004/08/30 11:32:23 UTC

Idea for a more sophisticated user rights management

Hello,

with apache and webdav a litte user management can be used. But the problem is that only
the main directories may be protected. If I have all projects below the branches directories
(eg /trunk/proj1 /trunk/proj2 /branches/version1/proj1) its not possible to set up
some user rights. So I can protect /trunk/proj1 but not /branches/ver20/proj1 automatically.

Is it possible to define user rights per directory and maybe files? Eg to use the (versioned) properties
  svn:user:jan
  svn:group:team1
  svn:rights:rwxr-xr-x
like in unix file system. The groups can be given in the user file (more than one group
per person should be allowed).

These properties are checked if the directory or file is accessed. So it is also possible
to create a branch from all projects (which is useful if they have dependencies) without
writing or reading rights for all of them. 

Only question is if deletion or the renaming of a directory should be allowed if one of
contained files are not accessible, in my opinion it should.

In cvs this was possible, except for branching/tagging you need write access for all files.

best regards 
jan




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: Idea for a more sophisticated user rights management

Posted by Travis P <sv...@castle.fastmail.fm>.
On Aug 30, 2004, at 7:49 PM, Greg Hudson wrote:
> On Mon, 2004-08-30 at 10:30, Ben Collins-Sussman wrote:
>>> with apache and webdav a litte user management can be used. But the 
>>> problem is that only
>>> the main directories may be protected. If I have all projects below 
>>> the branches directories
>>> (eg /trunk/proj1 /trunk/proj2 /branches/version1/proj1) its not 
>>> possible to set up
>>> some user rights. So I can protect /trunk/proj1 but not 
>>> /branches/ver20/proj1 automatically.
>>
>> This is why we have mod_authz_svn.  Please look at chapter 6.
>
> Uh, no; read the last sentence of the paragraph you quoted.
>
> This is (among other reasons) why we want in-FS ACLs.

In the immediate term, if the OP can tell what the version #s are going 
to be, he could *perhaps* set mod_authz_svn permissions on those 
directories even before they are created so that when created, they'll 
have the restricted rights immediately.  For example, I'm thinking:

[/branches/version1/proj1]
@proj1readnotallowed =
[/branches/version2/proj1]
@proj1readnotallowed =
...
[/branches/version500/proj1]
@proj1readnotallowed =

Of the real-life setup does not have the predictable structure that I 
guessed from the mail list message, then this won't work.  It might 
also need to be tested to make sure mod_authz_svn will work as expected 
in this case.

-Travis



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Idea for a more sophisticated user rights management

Posted by Greg Hudson <gh...@MIT.EDU>.
On Mon, 2004-08-30 at 10:30, Ben Collins-Sussman wrote:
> > with apache and webdav a litte user management can be used. But the problem is that only
> > the main directories may be protected. If I have all projects below the branches directories
> > (eg /trunk/proj1 /trunk/proj2 /branches/version1/proj1) its not possible to set up
> > some user rights. So I can protect /trunk/proj1 but not /branches/ver20/proj1 automatically.
> 
> This is why we have mod_authz_svn.  Please look at chapter 6.

Uh, no; read the last sentence of the paragraph you quoted.

This is (among other reasons) why we want in-FS ACLs.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Idea for a more sophisticated user rights management

Posted by Ben Collins-Sussman <su...@collab.net>.
On Mon, 2004-08-30 at 06:32, Jan Mönnich wrote:
> Hello,
> 
> with apache and webdav a litte user management can be used. But the problem is that only
> the main directories may be protected. If I have all projects below the branches directories
> (eg /trunk/proj1 /trunk/proj2 /branches/version1/proj1) its not possible to set up
> some user rights. So I can protect /trunk/proj1 but not /branches/ver20/proj1 automatically.

This is why we have mod_authz_svn.  Please look at chapter 6.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org