Set up SVN server and related permissions configuration in CENTOS6

Source: Internet
Author: User

Install SVN server software using yum, build the code warehouse used by the team in CentOS, create accounts for development members, and assign permissions:
1. Check the installation of SVN service software
svnserve–version command to view the installation status,
The "-bash:/usr/bin/svnserve:no such file or directory" prompt indicates that there is no installation, go directly to step 2nd,
Otherwise, the installed SVN Server software version Information "Svnserve, Version ..." is displayed, and you can use the following command to remove the installed version
Yum Remove Subversion

2. Install SVN server Software
Yum Install Subversion

3. Create a code Warehouse
① Creating a folder manually
mkdir-p/var/www/svntest
② the created folder as the Code warehouse
svnadmin create/var/www/svntest
③ into the Warehouse folder Svntest, you can see the following several folders and files

Where the Conf folder contains three configuration files

Authz file is user/user group permissions configuration, passwd file is User account and password configuration file, svnserve.conf file is a comprehensive configuration file

4. Create users and set permissions
(1). Create a user in the passwd file
Vim passwd
Top line fill in the account name and password
[Users]
Admin1 = Password1
Server = Password2
web = Password3
UI = Password4

(2). Set up user groups and assign corresponding permissions
① Determining role types
Admin
Server
Web
Ui
② designing user groups and Members
Vim Authz
Add under [Group]
admin = admin1
Server = Server1,server1
web = Web1
UI = Ui1
③ assign permissions, followed by the above configuration Write permission
The Administrators group has read and write permissions in all directories, and other groups have read and write permissions to separate directories that have read-only or no permissions on other directories
[/]
@admin = RW
@server = R
@web = R
@ui = R
[/server]
@server = RW
[/web]
@server = RW
[/web]
@web = RW
[/common]
* = RW

5. Configure Firewall port Access
Vim/etc/sysconfig/iptables
Add a line
-A input-m state–state new-m tcp-p tcp–dport 3690-j ACCEPT
Then quit editing and restart the firewall
Service iptables Restart
6. Start the SVN service
svnserve-d-r/var/www/svntest
7. Turn off SVN service
Killall Svnserve
8. Client access to SVN server
The connection address is:svn://server IP

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Set up SVN server and related permissions configuration in CENTOS6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.