SVN不存储密码或用户名 [英] SVN Does not Store Password nor Username

查看:624
本文介绍了SVN不存储密码或用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在OSX Mavericks上使用MacPorts SVN 1.8.9:

I am using MacPorts SVN 1.8.9 on OSX Mavericks:

svn --version
svn, version 1.8.9 (r1591380)
   compiled May 15 2014, 11:06:03 on x86_64-apple-darwin13.1.0

我有一个与 svn2ftp 的代表,我曾与开发人员一起工作.这是版本控制和实际站点之间的良好桥梁.在~/.subversion/config中,我有:

I have a rep with svn2ftp which I use to work with developers. It is a nice bridge between version control and the actual site. In ~/.subversion/config I have:

password-stores = keychain
store-auth-creds = yes

~/.subversion/servers我有

username = myusername
store-passwords = yes
store-plaintext-passwords = yes

但是每次执行do svn x时,系统都会要求我输入OSX用户名的密码,而不是添加的用户名,并且密码也不会存储在KeyChain中:

But each time a do svn x I am asked for the password for the my OSX username instead of the username added and the password is also not stored in the KeyChain:

svn log
Authentication realm: <http://www.svn2ftp.com:80> repo
Password for 'osx-username': 

密码既不以纯文本形式存储在其他地方.因为该SVN来自MacPorts,我是否应该在其他地方进行这些更改?我不会这样.我在这里想念什么?配置文件权限问题?请参阅此处的权限:

The password is neither stored elsewhere as plain text. Am I supped to make these changes elsewhere because this SVN is from MacPorts? I would not think so. What am I missing here? A config files rights issue? See here the permissions:

ls -la
total 48
drwxr-xr-x    6 root    staff   204 Jan 23  2010 .
drwxr-xr-x+ 150 jasper  staff  5100 Jun 27 12:31 ..
-rw-r--r--    1 root    staff  4276 Jan 23  2010 README.txt
drwxr-xr-x    6 root    staff   204 Jan 23  2010 auth
-rw-r--r--    1 root     staff  6486 Jul  8 14:00 config
-rw-r--r--    1 root    staff  7684 Jul  8 13:52 servers

/Users/jasper/.subversion

推荐答案

最后,我不得不让~/.subversion/auth/的所有者成为我所使用的用户.之后,用户名和密码存储在/Users/userinqu/.subversion/auth/svn.simple下的auth文件夹中.是的.现在一切正常.

In the end I had to make the owner of ~/.subversion/auth/ the user I was using. After that the username and password were stored in the auth folder under /Users/userinqu/.subversion/auth/svn.simple . And yes. It is all working now.

这篇关于SVN不存储密码或用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆