Opened 6 years ago

Closed 6 years ago

#2229 closed task (fixed)

Switch geotiff SVN repository to read-only mode

Reported by: rouault Owned by: sac@…
Priority: normal Milestone:
Component: SysAdmin Keywords:
Cc:

Description

The libgeotiff project has decided to migrate to git and is now hosted at https://github.com/OSGeo/libgeotiff

Consequently, could you switch /​svn/​repos/​metacrs/​geotiff to read-only mode ?

Thanks, Even

Change History (5)

comment:1 by robe, 6 years ago

Resolution: fixed
Status: newclosed

I made the change just for the libgeotiff folder. Can you confirm you can only read now? Unfortunately I can't test since I only have read-rights to the repo anyway.

comment:2 by robe, 6 years ago

Resolution: fixed
Status: closedreopened

okay guess that didn't work EvenR can still commit to that folder

comment:3 by robe, 6 years ago

Hopefully my last change did the trick.

I ended up copying the pattern of the grass/ postgis / other sites

Following this:

https://wiki.osgeo.org/wiki/Subversion#Authz_Rules

Basically created a authz.tmpl file in /var/www/svn/repos/metacrs with these contents:

[groups]
committers = @@metacrs@@


[/]
* = r
@committers = rw

[/geotiff]
* = r

Changed the /etc/apache2/includes/subversion/metacrs.conf

I remarked out the LDAP stuff except for user listing

    <Location /metacrs>
      DAV svn
      SVNPath /var/www/svn/repos/metacrs
      AuthzSVNAccessFile /var/www/svn/repos/metacrs/authz

      #<LimitExcept GET PROPFIND OPTIONS REPORT>
          Include includes/ldap_auth_url.inc
      #    Require ldap-group cn=metacrs,ou=svn,dc=osgeo,dc=org
      #</LimitExcept>
      Satisfy Any
      Require valid-user
    </Location>

When to this page - https://www.osgeo.org/cgi-bin/auth/ldap_group.py?group=postgis

and did a pointless remove and readd.

That triggers all the authz files to be recreated based on their authz.tmpl file and I confirmed I now had a authz file in root of metacrs folder

Then did a

service apache2 reload

comment:4 by rouault, 6 years ago

I confirm I can no longer commit. Thanks @robe for taking care of this.

comment:5 by robe, 6 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.