How can I setup the permissions in Linux so that two users can update the same SVN working copy on the server?

前端 未结 4 1267
说谎
说谎 2021-02-06 16:20

My server has both Subversion and Apache installed, and the Apache web directory is also a Subversion working copy. The reason for this is that the simple command svn upda

4条回答
  •  名媛妹妹
    2021-02-06 17:02

    in your svn repo, you can find a 'conf' directory where you set permissions. you have 3 files there:

    • authz
    • passwd
    • svnserve.conf

    you set in the authz file which users have which kind of acces, per user or per group. you set groups there, SVN groups not linux user groups (hashed lines are comments):

    [groups]
    # harry_and_sally = harry,sally
    projectgroup = richard,austin
    
    # [/foo/bar]
    # harry = rw  -- user harry has read/write access
    # * =  -- everybody have no access
    
    # [repository:/baz/fuz]
    # @harry_and_sally = rw  -- harry_and_sally group members have read/write access
    # * = r  -- everyone has read access
    
    [/server/staging]
    @projectgroup = rw
    * = r
    

    work around this example and set your config. in the 'passwd' file you set up users passwords. execute

    cat passwd
    

    you'll get commented file with explanation how to set it up.

提交回复
热议问题