subversion

vi /etc/apache2/conf-enabled/svn.conf
設定 svn for apache2,新增帳戶檢查機制,請修改為下列文字。 <Location /svn> DAV svn SVNParentPath /var/svn SVNListParentPath on AuthType Basic AuthName "SVN Repository" AuthUserFile /var/svn/account Require valid-user </Location>

trac+apache2

vi /etc/apache2/conf-enabled/trac.conf
設定 trac for apache2,新增帳戶檢查機制,請修改為下列文字。 <Location /trac> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption PYTHON_EGG_CACHE /tmp/python_egg_cache PythonOption TracEnvParentDir /var/trac AuthType Basic AuthName "Trac Project" AuthUserFile /var/svn/account Require valid-user </Location>

trac+Account Manager Plugin

vi /var/trac/proj1/conf/trac.ini
設定 trac 參數檔,請加入 [account-manager] 區段,並在 [components] 新增下列選項。 [account-manager] htpasswd_file = /var/svn/account htpasswd_hash_type = crypt password_store = HtPasswdStore register_check = [components] acct_mgr.admin.* = enabled acct_mgr.api.* = enabled acct_mgr.htfile.htpasswdstore = enabled acct_mgr.notification.* = enabled acct_mgr.pwhash.* = enabled acct_mgr.web_ui.* = enabled acct_mgr.web_ui.resetpwstore = disabled trac.web.auth.loginmodule = disabled

vsftpd

vi /etc/pam.d/vsftpd,設定 vsftpd 使用的密碼檔案。 auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed auth required pam_pwdfile.so pwdfile /var/svn/account account required pam_permit.so

add user

  • sudo htpasswd -d /var/svn/account user
  • -d Force CRYPT encryption of the password (8 chars max, insecure)

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()