subversion1.6+apache 用户密码相关操作
subversion1.6+apache 用户密码相关操作先切换到apache命令目录:
cd /usr/local/apache/bin
创建svn用户文件: ./htpasswd -c /home/svnroot/data/passwd test (注意:会把原来的用户文件覆盖)
创建用户时会提示输入密码
在原svn文件中增加新用户或修改svn密码: ./htpasswd /home/svnroot/data/passwd test
并为创建用户开放权限:vi /home/svnroot/data/authz
admin=test
[/]
@admin = rw
@admin = rw
apache htpasswd 参数解释
Usage:
htpasswd [-cmdpsD] passwordfile username
htpasswd -b passwordfile username password
htpasswd -n username
htpasswd -nb username password
-cCreate a new file. (创建一个新文件,如果文件名称相同原来会被覆盖)
-nDon't update file; display results on stdout.
-mForce MD5 encryption of the password.(强行使用md5加密密码)
-dForce CRYPT encryption of the password (default).(使用crypt加密,默认采用)
-pDo not encrypt the password (plaintext).(不加密密码)
-sForce SHA encryption of the password.(sha加密)
-bUse the password from the command line rather than prompting for it.(直接创建用户和密码,不需要一步一步输入)
-DDelete the specified user.(删除用户)
安装与详细配置:http://blog.csdn.net/wx326977002/article/details/6028879
svn权限管理:http://www.cnblogs.com/xingchen/archive/2010/07/22/1782684.html
页:
[1]