1. New Project
Svnadmin Create/mnt/fbdisk/svn/newproject
2. The NewProject directory will be created under SVN
Total 24
Drwxr-xr-x 2 root root 4096 APR 3 14:05 conf
Drwxr-sr-x 6 root root 4096 APR 2 22:49 db
-r--r--r--1 root root 2 Apr 2 22:49 format
Drwxr-xr-x 2 root root 4096 Apr 2 22:49 Hooks
Drwxr-xr-x 2 root root 4096 Apr 2 22:49 Locks
-rw-r--r--1 root root 229 Apr 2 22:49 README.txt
3. Enter the Conf directory
[email protected] conf]# LL
Total 12
-rw-r--r--1 root root 1119 Apr 3 14:02 Authz Configure access rights
-rw-r--r--1 root root 355 Apr 2 22:56 passwd configuration password
-rw-r--r--1 root root 3068 Apr 3 14:05 svnserve.conf Configure SVN service
Modify the svnserver.conf, as follows
[email protected] conf]# cat svnserve.conf |grep-v ^#|grep-v ^$
[General]
Anon-access = None
auth-access = Write
Password-db = passwd
Authz-db = Authz
Realm = Feiben
[SASL]
Modify passwd Add account password, the corresponding relationship is the account password, the equal sign can not have spaces, an account corresponding to a row
[email protected] conf]# cat passwd |grep-v ^#|grep-v ^$
[Users]
Admin=error#[email protected]#
Jinshan=error#[email protected]#
Modify Authz,
[email protected] conf]# cat Authz |grep-v ^#|grep-v ^$
[Aliases]
[Groups]
admin = Admin,jinshan Add Group member
[/]
@admin = Rwadmin Group member has read and write access
4. Close and start
[Email protected] conf]# Ps-ef |grep SVN
Root 22086 1 0 14:06? 00:00:00 svnserve-d-r/mnt/fbdisk/svn/
Root 22128 22012 0 14:15 pts/0 00:00:00 grep--color=auto svn
[[email protected] conf]# kill-9 22086 Close
[[email protected] conf]# svnserve-d-r/mnt/fbdisk/svn/start
New SVN project under Linux