Answer the question
In order to leave comments, you need to log in
Why doesn't automatic authorization work in svn when started from cron
A simple creak is performed on the server from time to time
cd /svn
svn up
The password and login were saved at the first checkout.
The repository is located on the same server and works via mod_dav_svn in apache
When you run it in the console, everything goes fine, when from the cron
Authentication realm: < svnip :80> Authorization Realm
Password for 'root': Authentication realm: < svnip :80> Authorization Realm
Username : svn: OPTIONS of 'http://[email protected]/vpn': authorization failed: Could not authenticate to server: rejected Basic challenge (http://svnip
)
Answer the question
In order to leave comments, you need to log in
Because cron runs under another user, under which he does not know the authorization parameters, such as this)
enter the login and password in the command line parameters, and set the access rights to the script so that no one else will read it
The password and login were saved at the first checkout.
Password for 'root':
store-passwords = yes
store-auth-creds = yes
store-plaintext-passwords = yes
store-passwords = yes
store-auth-creds = yes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question