Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

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”:

[users]
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
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x