首頁 > 軟體

Linux下SVN賬戶密碼儲存設定

2020-06-16 17:59:23

Linux下用SVN進行更新等操作時,總是提示輸入使用者名稱和密碼,很不方便。因此搜了下解決辦法,總結如下:

開啟SVN組態檔:

vim /home/<user>/.subversion/config

找到如下程式碼:

### Set store-passwords to 'no' to avoid storing passwords in the
### auth/ area of your config directory.  It defaults to 'yes',
### but Subversion will never save your password to disk in
### plaintext unless you tell it to (see the 'servers' file).
### Note that this option only prevents saving of *new* passwords;
### it doesn't invalidate existing passwords.  (To do that, remove
### the cache files by hand as described in the Subversion book.)
# store-passwords = no

將store-passwords = no這行更改為:

store-passwords = yes

這樣在下次進行SVN操作時就不用再輸入使用者名稱和密碼了。

Ubuntu 14.04 下搭建SVN伺服器 svn://  http://www.linuxidc.com/Linux/2015-01/111956.htm

CentOS 6.2 SVN搭建 (YUM安裝) http://www.linuxidc.com/Linux/2013-10/91903.htm

CentOS 6.5部署Apache+SVN  http://www.linuxidc.com/Linux/2013-12/94315.htm

Apache+SVN搭建SVN伺服器 http://www.linuxidc.com/Linux/2013-03/81379.htm

Windows下SVN伺服器搭建和使用 + 用戶端重新設定密碼 http://www.linuxidc.com/Linux/2013-05/85189p5.htm

Ubuntu Server 12.04 安裝 SVN 並遷移 Virtual SVN資料 http://www.linuxidc.com/Linux/2013-05/84695.htm

Ubuntu Server搭建svn服務以及遷移方法 http://www.linuxidc.com/Linux/2013-05/84693.htm

本文永久更新連結地址http://www.linuxidc.com/Linux/2015-06/118400.htm


IT145.com E-mail:sddin#qq.com