linux svn authorization failed错误
2015-10-09 17:05
651 查看
找了半天错误原因
authorization failed错误主要是conf/auth文件配置错误,可以参考如下配置:
最后原因为启动svn错误
源地址:http://www.bubuko.com/infodetail-676435.html
authorization failed错误主要是conf/auth文件配置错误,可以参考如下配置:
### This file is an example authorization file for svnserve. ### Its format is identical to that of mod_authz_svn authorization ### files. ### As shown below each section defines authorizations for the path and ### (optional) repository specified by the section name. ### The authorizations follow. An authorization line can refer to: ### - a single user, ### - a group of users defined in a special [groups] section, ### - an alias defined in a special [aliases] section, ### - all authenticated users, using the '$authenticated' token, ### - only anonymous users, using the '$anonymous' token, ### - anyone, using the '*' wildcard. ### ### A match can be inverted by prefixing the rule with '~'. Rules can ### grant read ('r') access, read-write ('rw') access, or no access ### (''). [aliases] # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average [groups] # harry_and_sally = harry,sally # harry_sally_and_joe = harry,sally,&joe admin = u1 //多用户可以使用,隔开 例如 u1,u2,u3 user = u2 //普通用户组 # [/foo/bar] # harry = rw # &joe = r # * = # [repository:/baz/fuz] # @harry_and_sally = rw # * = r [repos:/] @admin = rw //设置用户组权限
最后原因为启动svn错误
源地址:http://www.bubuko.com/infodetail-676435.html
注意: 例如你执行了 svnadmin create works 创建了一个works版本库,然后你运行svnserve启动服务的时候 -r参数需要制定works的上一级目录,要不然也会出现 authorization failed错误! 示例路径pwd:/alidata/svn/works svnserve -d -r /home/svn 这样一来auth文件里的[repos:/]参数才起作用!启动时参数错误
1,启动SVN sudo svnserve -d -r /home/svn/ 其中 -d 表示守护进程, -r 表示在后台执行 /home/svn/ 为svn的安装目录 2,关闭SVN 这里采取linux杀死进程的方式处理的 ps -ef|grep svnserve root 4967 1 0 Aug23 ? 00:00:00 svnserve -d -r repository/ 这里 kill -9 4967杀死进程, 此4967为进程号
相关文章推荐
- Linux下复制粘贴快捷键
- linux清空日志文件内容 (转)
- linux下源码安装mysql
- CentOS6.5+hadoop1.2.1安装配置测试记录
- linux获取网线插拔状态的实现
- linux查看文件大小,卸载挂载硬盘
- linux中banner命令的用法
- [转]Centos6.5安装配置keepalived
- CentOS6.5+HADOOP2.7.1安装配置测试编译详细教程
- linux命令学习-(1)
- Linux与Windows 解压乱码 UTF8BOM读取问题
- GPS数据计算校验和的方法
- Linux CentOS6.5下编译安装MySQL 5.6.16【给力详细教程】
- centos安装vsftpd
- 详解Linux环境下Mysql的安装(含下载地址)
- Linux下修改新建用户权限
- linux上nignx php环境搭建
- linux 内核优化转载
- Linux内存管理--基本概念
- Linux搭建SVN 服务器