Skip to content

Instantly share code, notes, and snippets.

@gunjanpatel
Last active December 17, 2015 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gunjanpatel/5574815 to your computer and use it in GitHub Desktop.
Save gunjanpatel/5574815 to your computer and use it in GitHub Desktop.
How to create SVN ( subversion / svn ) user using command line in Linux.

Create SVN Authenticaiton user using htpasswd in Linux

  • Open Terminal ( Ctrl + Alt + t )
  • Go to etc directory using cd command
cd /etc/
  • Check for availability of svn-auth-conf using command
ls -l
  • If file does not exist then type following command to create file and first user.

replace <username> with username which you want to grant access of SVN repo.

sudo htpasswd -c svn-auth-conf <username>

OR

  • If file exist then type following command to create file and first user.
sudo htpasswd -m svn-auth-conf <username>
  • After this command it will ask you to enter password for the user

windows user can use [PuTTY] (http://www.putty.org/) to work with linux commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment