InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Svn tutorials

  • Diff last committed change
  • Edit log message for a committed revision
  • Make file executable on Linux
  • Recover svn lost password on Linux
  • Short diff without context
  • Svn log of all files in a directory
  • Svn log of entire repository
  • Undo last commit
  • View older version of a file
 
  • Home
  • > Tutorials
  • > Svn

How to recover svn lost password on Linux

By admin on Oct 5, 2015

If you are using simple web auth to connect to svn server, you can choose to store it at client side. This way you don’t have to enter it again during svn update, commit, etc. If you lose your password and for some reason you need it again to checkout code (may be code checkout on a different machine), you can get it using the following steps. These were tried on a Ubuntu Linux machine but should work on any other Linux or Mac.

Find the repository root

Run the following command from svn location to print Repository Root:

$ svn info
...
...
Repository Root: http://svn.foo.com/repos/proj1
Repository UUID: 30971f6e-c88f-4078-ac10-ab7dfecedd35
...

Find the svn auth file

svn auth files are stored in ~/.subversion/auth/svn.simple/ directory. There can be multiple files in case you have multiple svn repositories checked out. Find the right auth file by using grep.

$ grep -H svn.foo.com ~/.subversion/auth/svn.simple/*
/home/user1/.subversion/auth/svn.simple/d2e40c7b1a7f205654992959b58d854f: Authorization Realm

Note that you should replace svn.foo.com with the domain of your svn server in grep command. This will tell you correct auth file for your domain. Now you can simply view the content of the auth file to find the password. It is stored in plain text format in this file.

Suggested posts:

  1. How to use ssh port forwarding to surf a site from different location
  2. Find recently modified files on Linux
  3. prevent wordpress xmlrpc.php attack
  4. Jenkins how to clone a project
  5. How to fix a broken sudoers file on AWS/EC2 Linux
  6. How to print javascript object to log
  7. How to migrate your site from one domain to another
  8. Why and how to log Content-Type in apache access log
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Linux, Linux/Unix Command Line, Svn, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress