InfoHeap
Tech tutorials, tips, tools and more
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 setup svn repository on AWS Ubuntu Linux with apache simple auth
  2. How to zip/unzip a directory with password
  3. How to check if a user has password on Linux
  4. migrate multiple mysql databases using mysqldump on Linux
  5. Linux – how to enable password login on ssh server
  6. How to add a user on Linux with sudo access
  7. How to find mysql query rate on Linux
  8. How to use qpdf to add/remove password from pdf on mac
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

Follow InfoHeap

facebook
twitter
googleplus
  • Browse site
  • Article Topics
  • Article archives
  • Recent Articles
  • Contact Us
  • Omoney
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | 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

Copyright © 2023 InfoHeap.

Powered by WordPress