본문 바로가기

OS/Linux

SVN - store password unencrypted (yes/no)?

리눅스에서 SVN을 사용하며 터미널을 이용해 checkout, commit, update 등을 하려할 때


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

ATTENTION!  Your password for authentication realm:


   <svn://125.7.184.149:3690> Tasks 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/tsvr/.subversion/servers'.

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

Store password unencrypted (yes/no)?


와 같은 메세지가 나오면서 yes를 치건 no를 치건 계속해서 

Store password unencrypted (yes/no)?

Store password unencrypted (yes/no)?

Store password unencrypted (yes/no)?

이걸 물어본다.


찾아보니 언어권 인코딩 문제인 듯..


해결책은 크게 두 가지

1. svn 명령을 실행할때 뒤에 --password 옵션을 주는 것이다.

예를 들어 update를 받는 경우

#svn update --password xxxxxx

xxxxxx은 svn 계정 비밀번호


2. subversion 설정 중 store-plaintext-passwords 옵션을 사용하도록 하는 것

자신 계정의 홈디렉토리에 보면 숨은 폴더 .subversion 을 찾을 수 있다

그 안에 servers 파일에 보면 store-plaintext-passwords = no 라는 부분이 주석처리 되어 있을 수 있다.

사용하고 싶은데로 yes or no를 설정하고 주석을 해제한다.