问题
I created users with the svnadmin
command but when I access the URL for repos using TortoiseSVN it doesn't prompt me for any password. I can however directly access the URL using my web browser.
Also, I cannot actually upload any files from TortoiseSVN because my credentials are not working.
回答1:
Try clearing your authentication data on TortoiseSVN:
TortoiseSVN ->
Settings ->
Saved Data:
After that, use TortoiseSVN's Repository Browser to browse to the URL. Assuming that the SVN server doesn't allow anonymous access, you should be prompted for credentials.
回答2:
Tortoise usernames and passwords are configured in the conf directory of the repository install.
For example if your repositories are installed at C:\svn\repos
the conf
directory there has an authz file, a passwd file and a svnserve.conf file.
Set/uncomment the following in the svnserve.conf file
password-db = passwd
anon-access = none
auth-access = write
and then in the passwd file set a user line as follows
testuser1 = password1
The authz file is used to associate users to groups.
Restart what you need to but this should allow you to connect via tortoise as long as everything else is configured properly.
Setting up logins via the URL interface is different depending on how you are setup. If you are using hte lightweight version of trac (tracd I believe) with your subversion instance you can use htaccess.
来源:https://stackoverflow.com/questions/18473545/username-password-is-not-prompted-while-accessing-the-svn-repos-i-can-directl