隨筆 - 119  文章 - 3173  trackbacks - 0
          <2007年4月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          交友莫獨酒,茅臺西鳳游。
          口干古井貢,心徜洋河流。
          稱多情杜康,趟無量雙溝。
          贊中華巍巍,無此不銷愁。

          常用鏈接

          留言簿(68)

          隨筆分類(136)

          隨筆檔案(122)

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 526712
          • 排名 - 92

          最新評論

          修改I:\svnroot\conf下面的三個文件

          authz文件:
          ### This file is an example authorization file for svnserve.
          ### Its format is identical to that of mod_authz_svn authorization
          ### files.
          ### As shown below each section defines authorizations for the path and
          ### (optional) repository specified by the section name.
          ### The authorizations follow. An authorization line can refer to a
          ### single user, to a group of users defined in a special [groups]
          ### section, or to anyone using the '*' wildcard.? Each definition can
          ### grant read ('r') access, read-write ('rw') access, or no access
          ### ('').

          [groups]
          admin =hermit
          user = bob
          test = test

          [/]
          @admin = rw

          [/LMS]
          @user = rw

          [/TEST]
          @user = rw
          @test = rw




          passwd文件:

          ### This file is an example password file for svnserve.
          ### Its format is similar to that of svnserve.conf. As shown in the
          ### example below it contains one section labelled [users].
          ### The name and password for each user follow, one account per line.

          [users]
          hermit = z
          bob = bob
          test = tes


          svnserve.conf文件:
          ### This file controls the configuration of the svnserve daemon, if you
          ### use it to allow access to this repository.? (If you only allow
          ### access through http: and/or file: URLs, then this file is
          ### irrelevant.)

          ### Visit http://subversion.tigris.org/ for more information.

          [general]
          ### These options control access to the repository for unauthenticated
          ### and authenticated users.? Valid values are "write", "read",
          ### and "none".? The sample settings below are the defaults.
          anon-access = none
          auth-access = write
          ### The password-db option controls the location of the password
          ### database file.? Unless you specify a path starting with a /,
          ### the file's location is relative to the conf directory.
          ### Uncomment the line below to use the default password file.
          password-db = passwd
          ### The authz-db option controls the location of the authorization
          ### rules for path-based access control.? Unless you specify a path
          ### starting with a /, the file's location is relative to the conf
          ### directory.? If you don't specify an authz-db, no path-based access
          ### control is done.
          ### Uncomment the line below to use the default authorization file.
          authz-db = authz
          ### This option specifies the authentication realm of the repository.
          ### If two repositories have the same authentication realm, they should
          ### have the same password database, and vice versa.? The default realm
          ### is repository's uuid.
          # realm = My First Repository


          經過上面的配置
          我們可以做到:
          根目錄不能隨便瀏覽。
          admin組里面的人可以控制全部文件
          user組里面的人可以控制LMS和TEST下的全部文件,除LMS和TEST及其子目錄以外不能看到其它目錄
          test組里面的人只能控制TEST下的全部文件

          如果想讓大家都能看到全部文件可以這樣修改
          [/]
          @admin = rw
          * = r

          啟動eclipse連接。
          如果要切換賬號,可以在服務器端把密碼改了,然后eclipse就會重新提示你輸入賬號密碼。

          posted on 2007-04-12 12:54 交口稱贊 閱讀(2551) 評論(2)  編輯  收藏 所屬分類: 教程與下載java相關

          FeedBack:
          # re: SVN快速上手(二)權限分配,控制到每個目錄[未登錄] 2007-04-12 20:31 test
          不錯不錯  回復  更多評論
            
          # re: SVN快速上手(二)權限分配,控制到每個目錄 2007-04-13 12:18 HD
          應該說一下
          * =
          ...  回復  更多評論
            
          主站蜘蛛池模板: 兴业县| 通化县| 紫金县| 海伦市| 区。| 陇西县| 滕州市| 苗栗市| 兰西县| 榆树市| 黑龙江省| 宣恩县| 永善县| 麦盖提县| 海原县| 边坝县| 八宿县| 兰考县| 安庆市| 英吉沙县| 佛坪县| 济南市| 台东市| 汶川县| 阿尔山市| 彰武县| 甘泉县| 分宜县| 景宁| 株洲市| 磴口县| 大渡口区| 吕梁市| 新密市| 荔浦县| 天水市| 绥化市| 五大连池市| 德庆县| 剑河县| 墨江|