Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I logout from SVN session after completing my execution in Unix

Tags:

unix

svn

I will describe whatever I have tried so far.

Suppose I want to create a directory in my repository I have used the following command.

svn mkdir https://"Server path/NEW_DIRECTORY -m "Create a directory"

So when I run this command, it prompts for password and when i type in the password, It asks whether the password should be stored in encrypted form or not. If I say store in an unencrypted format, then for all my future svn commands I don't have to give in my password. Now I want to logout from svn. How do i do this?

like image 832
ramaswamy Avatar asked Jan 14 '15 11:01

ramaswamy


People also ask

How do I reset my SVN username and password?

Go to Tortoise SVN --> Settings --> Saved Data . There is an option to clear Authentication Data, click on the clear button, and it will allow you to select which connection you wanted to clear userid/pwd for. After you do this, any checkout or update activity, it will reprompt for the userid and password.

How does SVN repository work?

The files on your computer are called working files. These are the files in which each user makes edits. Then, users commit their changes to the SVN server. Each time a user commits a change, SVN manages and records it by creating a new version.


2 Answers

A logout command does not exist in SVN.

If you never want to 'login', use following option on every svn command:

--no-auth-cache

Otherwise, you might want to remove the credentials already stored in SVN cache:

On Unix, it's: rm $HOME/.subversion/auth.

On Windows, it's in: %APPDATA%\Subversion\auth or %APPDATA%\Roaming\Subversion\auth\

like image 200
Ivan Jovović Avatar answered Sep 22 '22 03:09

Ivan Jovović


SVN clients and web browsers do not keep active connection to the server so there is no need to log them off. Every client request is getting authenticated. However, if you use Basic authentication (password-based) SVN may cache your credentials automatically.

You can run svn auth to view the contents of the credential cache.

Here are the areas where SVN may store client credentials:

  • Windows: %APPDATA%\Subversion\auth\
  • MacOS: OS Keychain
  • Linux/ Unix-like: ~/.subversion/auth/, various keychains

Read SVNBook | Client Credentials.

like image 41
bahrep Avatar answered Sep 23 '22 03:09

bahrep