SVN Password storage location

Source: Internet
Author: User
Tags auth collabnet subversion subversion client svn svn client ssh tortoisesvn collabnet
Linux system, Subversion command-line client, version 1.6.11:
~/.subversion/auth/svn.simple/

Windows system, TORTOISESVN 1.6.8:
C:\Documents and Settings\User\Application Data\subversion\auth\svn.simple

What needs to be stated is:
Typically, the TortoiseSVN svn password in a Windows system is saved with encryption.
The SVN password for the Subversion client in the Linux system is usually saved in plaintext. So the security of the SVN password in the Linux system is dependent on the account security.

The classic topic:
The security of the Windows system is protected by files, folders, and the security of the Linux system is protected in the account. As a result, accounts in a Linux system cannot be "loaned" to others as casually as Windows systems.

Use the following method in Linux to encrypt the password for the SVN account:
1. Install collabnet Subversion Client

(1)
Copy the collabnetsubversion-client-1.6.9-1.i386.rpm to the machine.

(2)
To give the RPM file the right to install:
# chmod 777 collabnetsubversion-client-1.6.9-1.i386.rpm
and ensure that the current account has the right to install RPM software.

(3)
Install the RPM software:
# RPM-IVH collabnetsubversion-client-1.6.9-1.i386.rpm

(4)
To back up the original SVN (1.6.11) Name:
# Mv/usr/bin/svn/usr/bin/svn_1_6_11

(5)
Set up a shortcut for the newly installed SVN, which is set as the default SVN:
# ln-s/OPT/COLLABNET_SUBVERSION/BIN/SVN/USR/BIN/SVN
2. Configure CollabNet Subversion Client

For each account that uses SVN, configure the following:
(1)
Delete all old svn password records for the current account:
$ RM ~/.subversion/auth/svn.simple/*

(2)
Modify the configuration file to ensure that the options in the configuration file "~/.subversion/config" are operational:
Password-stores = gnome-keyring

(3)
Modify the configuration file to ensure that the options in the configuration file "~/.subversion/servers" are operational:
[Global]
Store-passwords = yes
Store-plaintext-passwords = No

(3)
Execute the following statement to open the Gnome keyring:
$ Export ' Gnome-keyring-daemon '
Description
To automatically open Gnome keyring for each entry account, you can add an Autorun script to the configuration file:
$ VI ~/.bash_profile
Export ' Gnome-keyring-daemon '

(4)
Create a "SVN" account with a password of "123":
$/opt/collabnet_subversion/bin/keyring_tool-c SVN
Enter password for ' svn ' keyring:
Created ' svn ' keyring.

(5)
Set "SVN" as the default account for GNOME Keyring:
$/opt/collabnet_subversion/bin/keyring_tool-s SVN
Set ' svn ' keyring as default.

(6)
Set up svn password:
$ svn up
Authentication Realm: <svn://192.168.0.11:3690> MMO
Password for ' user ':
Authentication Realm: <svn://192.168.0.11:3690> MMO
Username:u1
Password for ' U1 ':
At Revision 1.
Description
(6-1) You can also set up a password for SVN by using commands such as SVN Checkout (CO).
(6-2)
The following command lets you know that the SVN password has been encrypted by Gnome Keyring:
$ cat ~/.SUBVERSION/AUTH/SVN.SIMPLE/IKJASLDFJASDFPO2191029123LKASDD
K 8
Passtype
V 13
Gnome-keyring
K 15
Svn:realmstring
V 30
<svn://192.168.0.11:3690> MMO
K 8
Username
V 6
U1
End

(7)
Setup Complete exit System:
$ exit
3. Daily use

You need to enter the GNOME keyring password "123" Every time you use SSH to access the account of the server system for file updates:
$ svn up
Password to ' svn ' GNOME keyring:
at Revisi On 1.

Reference:
Using SVN client and Gnome keyring in SSH sessions
[turn] Http://kenneho.net/2011/01/30/using-svn-clie nt-and-gnome-keyring-in-ssh-sessions/
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.