Adding a user to subversion on Ubuntu

On Ununtu the password file is located at

/etc/subversion/passwd

To add a user to this file so subverison can reference it you can use the following command.

htpasswd passwd newusername

to create a new passwd file or overwrite a current one use the command

htpasswd -c passwd newusername

You can verify if a password is correct by using the following command.

htpasswd -v passwd username

And finally to remove a user from a password file use this command.

htpasswd -D passwd username