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.
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals