Tag: Remove the Read and Write permissions library file between the Idt har. com block ide
First, check the Mac comes with SVN version number two, create code warehouse $ mkdir-p/users/shared/svn/repository$ svnadmin create/users/shared/svn/repository Create a code warehouse: the first command to create the warehouse file directory, store the path of their own habits,/svn the parent path/svn/warehouse name, note: The warehouse name cannot contain Arabic numerals. The second command initializes the warehouse. After executing the second command, the warehouse will have some more configuration files. Third, modify the configuration file 1, configure the user rights of SVN is mainly to modify the/svn/mycode/conf directory of three files 1. Open svnserve.conf, the following configuration items in front of the
#和空格都去掉# anon-access = read# auth-access = write# password-db = passwd# authz-db = Authz Modified: anon-access = Read on behalf of Anonymous access is readonly, if you change to a Non-access = None means anonymous access is forbidden and requires an account password to access 2. Open passwd and add your account and password under [users]
no spaces before line, such as: Account ZS, Password: 1234563. Open Authz, configure user groups and permissions we can add users in the passwd to different user groups, later, you can set different permissions for different groups of users, there is no need to set permissions for each user individually. Under [groups], add the group name and user name, separated by commas (,) between multiple users,
there must be no space before the line
[Groups]
Topgroup=mj,jj
Note that MJ and JJ belong to the Topgroup group, and then the permissions are configured. Use [/] to represent all repositories in the SVN server [Java] View plain copy
[/]
@topgroup = RW
The above configuration instructions Topgroup all the users in this group have read and write (rw) permissions to all repositories, the group name is preceded by @ if it is a user name, do not add @, such as MJ This user has read and write permissions
[/]
MJ = RW
For other fine-grained permission controls, you can refer to other content in the Authz file 4. Start SVN server front configured so much, the most critical or to see whether the normal start of the server, if not to start, do more work in the front is futile. Enter the following command at the terminal: svnserve-d-R/USERS/SHARED/SVN without any hint, the boot was successful. 5. Close the SVN server if you want to shut down the SVN server, the most effective way is to open the utility's "Activity Monitor"
Combined with the above, we can easily build the SVN server environment to create the SVN repository Terminal command:
$ mkdir-p/users/shared/svn/repository
$ svnadmin create/users/shared/svn/repository/
$ cd/users/shared/svn/repository/
$ ls
README.txt db Hooks
conf format locks
$ CD conf/
$ ls
Authz Hooks-env.tmpl passwd svnserve.conf
$ VI svnserve.conf
$ VI passwd
$ VI Authz
$ svnserve-d-R/USERS/SHARED/SVN
Iv. using Cornerstone 3 to connect to the local SVN repository
See "Success" pop-up window, then jump to the main page, that is, the connection is successful;
V. Use idea to connect to SVN warehouse 1, configure SVN
2. Connect to SVN Warehouse
Connection Success 3, the first time to submit the code popup, select the project folder to submit successfully submitted to the warehouse, right-click Project can appear SVN version related content, submit updates and so on. 4. Export the project
Use your Mac to bring your own SVN server and connect using idea