如何移除SVN所記錄的認證資訊

在UNIX下使用SVN做check out操作時都會需要輸入帳號、密碼做認證,最後SVN也會詢問是否要儲存?如果此時不小心選擇的Yes,你剛輸入的帳號、密碼就會被記住,之後執行SVN的操作就不會再被詢問密碼。

如要恢復每次都輸入帳號、密碼,移除被記住的認證資料可藉由移除以下目錄達到目的
PS:一個檔案代表一個帳號
/home/youraccount/.subversion/auth/svn.simple

如想要進一步避免又不小心選擇到Yes,讓該主機不允許儲存SVN的帳密,可修改以下檔案
/home/youraccount/.subversion/servers
#增加以下設定
store-passwords = no
store-auth-creds = no
至於上述設定的含意,可參考上述檔案內的說明(節錄如下)
###   store-passwords            Specifies whether passwords used
###                              to authenticate against a
###                              Subversion server may be cached
###                              to disk in any way.

###   store-auth-creds           Specifies whether any auth info
###                              (passwords, server certs, etc.)
###                              may be cached to disk.


### The rest of the [auth] section in this file has been deprecated.
### Both 'store-passwords' and 'store-auth-creds' can now be
### specified in the 'servers' file in your config directory
### and are documented there. Anything specified in this section
### is overridden by settings specified in the 'servers' file.
# store-passwords = no
# store-auth-creds = no

留言