UPDATE #3:
I think I found it.
/etc/httpd/conf.d/subversion.conf
<Location /repos>
DAV svn
SVNPath /var/www/svn/repos
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
</Location>
svn-auth-conf is in the format of
user1:$apr1$randome letters ... $random letters and numbers
I feel like I used some command line tool to add the users but I can't remember what.
UPDATE #2: locate http.conf gives these results
/usr/share/logwatch/default.conf/logfiles/http.conf
/usr/share/logwatch/default.conf/services/http.conf
I don't see anything in either of them that looked related to subversion. I can post the files here if it will help.
original question:
A few years ago, I installed and setup subversion. I don't remember how I added a user. I need to add another now, but when I checked the passwd
file there were no users defined, nor was there anything set in the svnserve.conf
file -- both had everything commented out. That is the only way I can find to add users via google. So I tried it:
passwd
user1 = password1
user2 = password2
svnserve.conf
anon-access = none
auth-access = write
pasword-db = passwd
authz-db - authz
realm = repos
but I can still only access it with user1
, even though user1
is not a user on the linux server. Is there some other way to add users or do I have something wrong in my configuration?
update:
I've added the following line to my svnserve.conf file
authz-db = authz
then my authz file looks like this
authz [groups] devs = user1,user2
[repos:/]
devs = rw
still doesn't work. the password for user1 is different in the passwd than I use to login. So i think that subversion is not using that for authentication at all. especially since the file was empty before and I was still able to login. is there any way to make sure it uses the svnserve,passwd,authz files for authentication? is there another config file somewhere?