svn 암호를 물어보도록 하려면?

세벌의 이미지

http://www.pyrasis.com/main/SubversionServerForWindows
을 참고하여 subversion 을 설치하여 사용하고 있습니다.
설치하기에서 2.1 apache 와 2.2 subversion 까지만 하고 https 사용 안하는 5.1 5.2.2에 따라 설정하였습니다.

로그인할 때 암호가 자동 저장되어 다음에는 암호를 물어보지 않고 바로 쓸 수 있어 편하긴 한데...
암호가 자동으로 저장되지 않게 하고 싶어서 인터넷을 여기 저기 검색해보니
--no-auth-cache 를 사용하면 된다고 하기에
svn list --no-auth-cache
svn up --no-auth-cache
등을 해 보았는데, 그 이후에도 암호를 물어보지 않고 바로 접속이 되더군요.

어떻게 해야 암호가 저장되지 않나요?

세벌의 이미지

pyrasis 님께서 방법을 알려 주셨습니다. pyrasis 님 고맙습니다.

Quote:
XP에서는
C:\Document and Settings\사용자명\Application Data\Subversion\auth\svn.simple

비스타에서는
C:\Users\사용자명\AppData\Roaming\Subversion\auth\svn.simple

리눅스에서는
사용자 디렉토리/.subversion/auth/svn.simple

위 디렉토리에 들어가셔서 생성된 파일들을 모두 삭제하시면 됩니다. 여기에 각 사용자 계정의 암호가
저장되어 있습니다.

그런데 그렇게 해서 몇 번 써 보니 매번 암호 넣는 거 불편하더군요. 그래서 다시 암호를 묻지 않도록 하려고 하니까 그게 또 잘 안 되더군요. 어찌 어찌 해서 암호를 저장하도록 해서 쓰고 있습니다.

http://sebul.sarang.net/

ktd2004의 이미지

리눅스 환경으로 설명드리면

$ cat ~/.subversion/config
 
...
 
[auth]
### Set store-passwords to 'no' to avoid storing passwords in the
### auth/ area of your config directory.  It defaults to 'yes'.
### 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
### Set store-auth-creds to 'no' to avoid storing any subversion
### credentials in the auth/ area of your config directory.
### It defaults to 'yes'.  Note that this option only prevents
### saving of *new* credentials;  it doesn't invalidate existing
### caches.  (To do that, remove the cache files by hand.)
# store-auth-creds = no
 
...

저기 보이는 store-passwords 값을 원하시는대로 설정하시면 될 것 같습니다.

세벌의 이미지

인터넷 뒤져 보니 위와 같은 설명을 발견하고 그대로 했는데도 패스워드를 안 물어보고 넘어가더군요. 저는 리눅스가 아니고 윈도환경이었고 config 파일의 위치는 리눅스와 달랐고요.

http://sebul.sarang.net/

ktd2004의 이미지

이미 인증정보가 들어있기 때문일 가능성이 높습니다.

다음과 같이 인증정보가 들어있는 디렉토리를 삭제한 후에 다시 시도해 보시면 어떨까요? ^^;

$ rm -fr ~/.subversion/auth
[/cdoe]