Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn updates with different account (--username and --password ignored?)

Tags:

svn

Here is the situation: One man checked out repository and now I have to update some of the folders. Problem is that he left and no one knows the password. So, I would like to use my own account. I execute this command:

svn up --username (my_user_name) --password (my_password) --no-auth-cache

SVN asks for my password and SVN doesn't accept it. It looks like my credentials are ignored and original credentials are used (the one who did check out). I tested my account doing check out in /tmp and worked fine.

Why SVN does not accept my credentials while doing update?

like image 592
davidlt Avatar asked Oct 12 '10 13:10

davidlt


People also ask

Where are SVN credentials stored?

Windows can be found either in : C:\Users\%USERNAME%\AppData\Subversion\auth\svn. simple C:\Users\%USERNAME%\AppData\Roaming\Subversion\auth\svn.

How do I add users to SVN?

svn Administering SVN Create new userSpecify user_name with the username you wish to add in above command. It will prompt to provide password for the user. If you are creating very first user, you need to add –c switch in above command, which will create the file.


3 Answers

Try this

  mv $HOME/.subversion $HOME/.subversion-old
  cd <your working copy> 
  svn up --username <your username>

This should ask for the password for your username

like image 82
Version Control Buddy Avatar answered Oct 22 '22 14:10

Version Control Buddy


I had the same problem and I found that this option servers:global:http-library=serf can solve the issue if the protocol is http/https.

Your command then would be:

svn up --username (my_user_name) --password (my_password) --no-auth-cache \
       --config-option servers:global:http-library=serf
like image 24
Filippo Vitale Avatar answered Oct 22 '22 13:10

Filippo Vitale


Please try the command bellow. It is the proper way to remove cached credentials.

$ rm -f ~/.subversion/auth/svn.simple/*

After that:

$ svn up --username <your username>
like image 2
Santi Avatar answered Oct 22 '22 14:10

Santi