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

Re: Subversion access control

From: Matthew Beals <mjbeals_at_mtu.edu>
Date: Sun, 17 Jul 2011 09:28:37 -0400 (EDT)

I don't know your needs, but have you considered using svn+ssh instead? This transfers authentication over to ssh, which simplifies things quite a bit. Since all it is doing it making a tunnel and then calling svnserve as the user logging in, you can still retain user based permissions.

Matt

----------------------------------------
Matthew Beals
Michigan Technological University
Department of Atmospheric Sciences
1400 Townsend Drive
B019a Fisher Hall
Houghton, MI 49931
mjbeals_at_mtu.edu

----- Original Message -----
From: "Andy Canfield" <andy.canfield_at_pimco.mobi>
To: users_at_subversion.apache.org
Sent: Sunday, July 17, 2011 2:06:21 AM GMT -05:00 US/Canada Eastern
Subject: Subversion access control

We are running svnserve on a Mac OS X.

I can not get the subversion server to control access. I executed the server by this command:
/usr/bin/svnserve --daemon --root=/var/svn --config-file=/var/svn/config/svnserve.conf
As long as file /var/svn/config/svnserve.conf contains the original line:
# anon-access = read
this command works:
svn info svn://localhost/sample
Of COURSE I don't want random hackers to have read access to my source code !!!!!
As soon as that line is changed to
anon-access = none
the error message comes back:
svn: No access allowed to this repository

(By the way, I originally changed the "#" to a space and got an error on that line. Apparently the keyword MUST start in the first column.)

I have added this line to 'passwd' -
andy = canfield
I have added these lines to 'authz' -
[/sample]
andy = rw
The documentation for 'svn' says that if you don't give a user name and password you will be prompted for them. I have never under an circumstances been prompted. Even this command fails with the same error message:
svn info --username=andy --password=canfield svn://localhost/sample
Received on 2011-07-17 15:29:13 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.