Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#5773 closed defect (worksforme)

Trac permissions

Reported by: ssabhcew@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.10.4
Severity: normal Keywords: authz
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hi, I have this situation: We use only one repo in svn. The authentication for trac and svn is one file. For keep different subproject not to be seen by everybody, I'm using:


AuthzSVNAccessFile = /srv/svn/config/authz

And I've created groups and different permissions for different developers.

But I was surprizsd that when you log into trac, you can browse the source, that is forbidden for you in svn.

How can I made trac read the AuthzSVNAccessFile file and follow its permitions. Or should I set somehow permitions on every subfolder/project in trac configs ?

Attachments (0)

Change History (3)

comment:1 by ssabchew@…, 17 years ago

Well it seams that trac 'understand' only permissions by location like that


Test @dev = rw @all = r

If you try to specify the repo like this:

[myrepo:/Test] @dev = rw @all = r

it get confused

Even in the apache config I specified:

<Location /trac> …

PythonOption TracEnvParentDir /srv/trac

… </Location>

As there will be possibility for using more than one trac. And the svn config is configured for multiple repos, instead of only one (even for now we use one).
I use SVNParentPath instead SVNPath

P.S. I put a wrong mail when i made the ticket :-(

comment:2 by sid, 17 years ago

Keywords: authz added

Did you try updating to the latest version? It seems that this may not have been integrated in your version…. See also wiki:TracDev/SecurityBranch

comment:3 by hyuga <hyugaricdeau@…>, 17 years ago

Priority: highnormal
Resolution: worksforme
Status: newclosed

You need to point Trac to the authz file with the authz_file option in the [trac] section of your trac.ini file. At any rate, this is a configuration issue.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.