Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change SVN password command line

How do I change the SVN password from command line?

It is the best way for me if it can be done from the command line.

like image 741
Pavlonator Avatar asked May 03 '11 22:05

Pavlonator


People also ask

How do I change my svn client password?

To change your password for accessing Subversion If that's you and you are using the built-in authentication, then edit your [repository]\conf\passwd file on your Subversion server machine.

Where does svn store passwords?

On Windows, the Subversion client stores passwords in the %APPDATA%/Subversion/auth/ directory.


1 Answers

There are multiple ways passwords are setup on Subversion. It depends upon the server you're using (svnserve, http, svn+ssh), and the way the administrator has set everything up.

Subversion doesn't contain a built in authentication method. Instead, it can use many different external authentication methods from the very simple to the extremely complex. Some will allow users to change their own passwords and even setup their own accounts. Others require a system administrator to do it. It all depends upon your particular setup.

  • On our site, we use Apache http to serve our Subversion repository (svn co http://server/src/repos). I've set it up to use our Windows Active Directory, so the user's username and password is their Windows' username and password. It means I don't have to handle users' I forgot my password requests, and passed the whole account headache to our Windows administrators.
  • Some sites use Apache http, but use a password file located on the Apache server itself. This is usually called htpasswd and its location is configured by the Subversion administrator. It's possible that the System administrator has a way to let the users set their own passwords, but that's not necessarily true. In this instance, you have to contact the administrator and ask them to change your password.
  • Some sites use svnserve (svn co svn://server/repos). The standard way this is setup is that there's a passwd file in the Subversion repository's config directory. This is located on the system that's running the server, and you have no access to it. Again, you have to contact the system administrator.
  • Some sites use SASL for their authentication. This can use Windows Active Directory, LDAP, or any number of authentication methods. Sometimes you can set your own password, sometimes you have to ask the administrator how it's done.

So, you're going to have to ask your Subversion administrator how to change your password. If you're lucky, there's a way to do it yourself. If not, you'll have to ask your Subversion administrator to change it.

like image 152
David W. Avatar answered Sep 21 '22 18:09

David W.