현재 딱히 좋은 방법이 없어서
/etc/shadow에 직접 연결했는데 음..
생각해보니 DAV도 이용하고 적절하게 된듯?

Setup PAM for authentication

However, our SVN can be access by everyone, that is to say everyone can check out and commit, so we need to configure apache’s authentication for SVN. We plan to use PAM so that UNIX system user can access SVN use their username and password.

First enable auth_pam and auth_sys_group modules for apache2:

$ sudo a2enmod auth_pam
$ sudo a2enmod auth_sys_group

If we use shadow password in our system, we need to add www-data to the shadow group so that apache can read (not write!) the password of system user:

$ sudo adduser www-data shadow

Then edit our /etc/apache2/sites-available/ssl file and it should contain the following lines (the lines in red are newly added):

    DAV svn
    SVNPath /home/svn
 
    AuthType Basic
    AuthName “Subversion Repository”
    # this line is needed if your system use shadow password
    AuthUserFile /etc/shadow
    require group src

Restart the apache and everyone in the src group can access SVN repository.


[링크 : http://inming.net/?p=86]
 

Posted by 구차니