1.在命令提示字元底下  將根目錄切換至安裝subversion的資料夾

2.在命令提示字元底下  輸入要新增的帳號 密碼

   htpasswd -nb account  pwd
                         ~~~~~  ~~~
                           帳號       密碼

3.經過MD5編碼後出現結果

  account:$apr1$TI......$0tTuMp3HqqpK3zDvX6.d6.

4.把結果複製貼上至 資料夾中檔案 passwd.ini

5.設定account 這個帳號的權限 authz.ini

6.完成,測試帳號是否可正常checkin、checkout

-------------------------------------------------------------------------------------------------------

Usage:
        htpasswd [-cmdpsD] passwordfile username
        htpasswd -b[cmdpsD] passwordfile username password

        htpasswd -n[mdps] username
        htpasswd -nb[mdps] username password
 -c  Create a new file.
 -n  Don't update file; display results on stdout.
 -m  Force MD5 encryption of the password (default).
 -d  Force CRYPT encryption of the password.
 -p  Do not encrypt the password (plaintext).
 -s  Force SHA encryption of the password.
 -b  Use the password from the command line rather than prompting for it.
 -D  Delete the specified user.
On Windows, NetWare and TPF systems the '-m' flag is used by default.
On all other systems, the '-p' flag will probably not work.

創作者介紹
創作者 wmhuang 的頭像
wmhuang

喵姑娘的備忘錄

wmhuang 發表在 痞客邦 留言(0) 人氣()