配置好的svn登陆,返回密码错误和用户不在

Jees 2010-03-03 09:38:45
系统为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都有的。烦请高手给予建议和帮助。
...全文
1194 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
sansxin 2010-03-22
  • 打赏
  • 举报
回复
AuthzSVNAccessFile PATH/authz
wst021 2010-03-17
  • 打赏
  • 举报
回复
[Quote=引用楼主 jees 的回复:]
系统为ubuntu配置好subverson+apache,在web里可以看到svn repos的内容。
htpasswd创建用户
/etc/apache2/mods-available/dav_svn.conf 的内容也修改完毕

<Location /smilingworks/svn/repos>

# Uncomment this to enable the repository
……
[/Quote]

看了楼主的配置:

<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>

这里为什么没有加载用户帐户的文件?
你只加载了passwd文件,少了用户帐户的文件,找不到指定的路径,apache服务如何寻找呢?

Jees 2010-03-04
  • 打赏
  • 举报
回复
引用 1 楼 txt04test 的回复:
分配 相应的权限了吗?比人文档目录权限


配了,如下,就是显示密码不对
[groups]
g_iphone = sji, zmzhang

[/]
@g_iphone = rw
sji = rw
zmzhang = rw
guest = rw
* =
txt04test 2010-03-04
  • 打赏
  • 举报
回复
分配 相应的权限了吗?比人文档目录权限

1,277

社区成员

发帖
与我相关
我的任务
社区描述
软件工程 CVS/SVN
社区管理员
  • 版本控制社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧