Add User to SVN Server and Set Password.

Method 1 – Using The passwd File

The passwd file, located inside the conf folder of your SVN repository is a file that stores every user that have access to the repository with its password in plain text format.

You can edit the file using an SFTP client or even from the command line using VIM or NANO.

The content of the file follows a very simple format, on every line inside the users block you can add a new user by following the format “username” equal “password”:

username1 = password1
username2 = password2
username3 = password3

Method 2 – Using Command line

If you are creating very first user, you need to add –c switch in above command, which will create the file.

htpasswd -c /etc/subversion/passwd user_name

You can check existence of the file or list of configured users using following command cat /etc/subversion/passwd

You might need to execute above commands as super user.

Method 3 – Using Command line

To add user, use following command

htpasswd /etc/subversion/passwd user_name

Specify user_name with the username you wish to add in above command. It will prompt to provide password for the user.

Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x