svnコマンドを打つ度に「パスワードを保存しますか?」と聞かれるのを抑制する

このエントリーをはてなブックマークに追加
はてなブックマーク - svnコマンドを打つ度に「パスワードを保存しますか?」と聞かれるのを抑制する
Share on Facebook

Subversion 1.6にアップグレードしてからというもの、何かsvnコマンドを打つ度に下のメッセージが出るようになりました。

-----------------------------------------------------------------------
ATTENTION!  Your password for authentication realm:

<http:> TEST SVN repository

can only be stored to disk unencrypted!  You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible.  See the documentation for details.

You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/home/stylesen/.subversion/servers'.
-----------------------------------------------------------------------
暗号化されていないパスワードを保存しますか (yes/no)?

保存する気は無いのに毎回聞いてきてやかましいです。 抑止するには以下のようにconfigを編集します。

# ~/.subversion/config

# 以下の行を追加する
store-passwords = no
store-plaintext-passwords = no

ちなみに、一度保存してしまったユーザーの情報は ~/.subversion/auth/svn.simple/の中に保存されています。 邪魔なので消してしまいましょう。

参考

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>