Troubleshooting SVN Authorization Failure

If SVN displays the following error:

Authorization failed
svn: OPTIONS of 'https://svn.qualityunit.com/svn/main/PostAffiliatePro/trunk/server/plugins/AutoResponsePlus': authorization failed: Could not authenticate to server: rejected Basic challenge (https://svn.qualityunit.com)

It is possible that the SVN password file is inaccessible due to incorrect permissions.

Log in to your host as root.

cd /backup/home2/svnqual/etc
ls -al
total 20
drwxr-x---   3 svnqual nobody   4096 Dec 13 08:11 .
drwx--x--x  11 svnqual svnqual  4096 Dec 13 08:11 ..
-rw-r--r--   2 svnqual svnqual     0 Sep 29  2008 passwd
-rw-r--r--   2 svnqual svnqual     0 Sep 29  2008 quota
-rw-r-----   2 svnqual svnqual     0 Sep 29  2008 shadow
-rw-r--r--   1 svnqual svnqual  1559 Nov 29 10:24 svn.access
-rw-r--r--   1 svnqual svnqual   955 Nov 29 10:22 svn.passwd
drwxr-x---   2 svnqual svnqual  4096 Sep 29  2008 svn.qualityunit.com

The important thing is to verify the owner and group of svn.access and svn.passwd. Please check their permissions.

Alternatively, you can run the checkRights.sh script directly in the svnqual directory to fix the permissions.

Incorrect permissions on the SVN password files may prevent authentication and cause authorization failures. Always check and correct permissions when encountering similar errors.

×