{"id":1791,"date":"2022-04-04T04:32:53","date_gmt":"2022-04-04T04:32:53","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1791"},"modified":"2022-12-23T06:19:54","modified_gmt":"2022-12-23T06:19:54","slug":"add-user-to-svn-server-and-set-password","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/add-user-to-svn-server-and-set-password\/","title":{"rendered":"Add User to SVN Server and Set Password."},"content":{"rendered":"\n\n\n<h2 class=\"wp-block-heading\">Method 1 &#8211; Using The passwd File<\/h2>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>You can edit the file using an SFTP client or even from the command line using VIM or NANO.<\/p>\n\n\n\n<p>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 &#8220;username&#8221; equal &#8220;password&#8221;:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">&#091;users]\nusername1 = password1\nusername2 = password2\nusername3 = password3<\/code><\/span><\/pre>\n\n\n<h2 class=\"wp-block-heading\">Method 2 &#8211; Using Command line<\/h2>\n\n\n\n<p>If you are creating very first user, you need to add \u2013c switch in above command, which will create the file.<\/p>\n\n\n\n<p>htpasswd -c \/etc\/subversion\/passwd user_name<\/p>\n\n\n\n<p>You can check existence of the file or list of configured users using following command cat \/etc\/subversion\/passwd<\/p>\n\n\n\n<p>You might need to execute above commands as super user.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method 3 &#8211; Using Command line<\/h2>\n\n\n\n<p>To add user, use following command<\/p>\n\n\n\n<p>htpasswd \/etc\/subversion\/passwd user_name<\/p>\n\n\n\n<p>Specify user_name with the username you wish to add in above command. It will prompt to provide password for the user.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Method 1 &#8211; Using The passwd File The passwd file, located inside the conf folder of your SVN repository is a file that stores every user that&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[395],"class_list":["post-1791","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-svn"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1791"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1791\/revisions"}],"predecessor-version":[{"id":29433,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1791\/revisions\/29433"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}