配置好的svn登陆,返回密码错误和用户不在
系统为ubuntu配置好subverson+apache,在web里可以看到svn repos的内容。
htpasswd创建用户
/etc/apache2/mods-available/dav_svn.conf 的内容也修改完毕
<Location /smilingworks/svn/repos>
# Uncomment this to enable the repository
DAV svn
# Set this to the path to your repository
SVNPath /smilingworks/svn/repos
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
使用htpasswd -cm 和 htpasswd -b添加用户
重新启动apache
passwd的内容:
sji@amd:~$ cat /etc/subversion/passwd
sji:$apr1$OGg83p7T$5nDrRBkKBVseKxBnuhSa20
zmzhang:XDL8gXlKTnxBE
guest:$apr1$htjAhkUB$oI1Is.RO.B9c2RCn9tmml.
登陆的结果:
sji@amd:~$ svn mkdir svn://192.168.1.20/smilingworks/svn/repos/SmilingBooks -m "create a directory for the smiling books"
...
Username: zmzhang
Password for 'zmzhang':
svn: Authentication error from server: Password incorrect
Username: guest
Password for 'guest':
svn: Authentication error from server: Username not found
不是密码错误,就是用户不存在。但是passwd都有的。烦请高手给予建议和帮助。
[解决办法]