Re: sqlite[S8]: attempt to write a readonly database
From: Adam Jensen <hanzer_at_riseup.net>
Date: Sun, 10 Apr 2016 18:03:53 -0400
On Sun, 10 Apr 2016 14:36:09 -0700
> rep-cache couldn't be owned by root unless svnserve was running as root at the time it was last modified. You can change permissions to be correct, but there is some reason root was the UID at the time it was created. I'm not familiar with doas. I'm guessing it is similar to sudo? Maybe doas changes effective UID at odd times?
Thanks for the sanity check, it looks like I might have botched something early in the repository creation. My bad (It was my first time ;)
To verify (with svnserve running as user _svn):
doas -u _svn svnadmin create /var/svn/project-C
[general]
svn mkdir svn://minerva.bohemia.net/project-C/{trunk,tags,branches}
Authentication realm: <svn://minerva.bohemia.net:3690> minerva.bohemia.net
A project-C/tags
cd project-C/trunk
Adding foo
ls -la /var/svn/project-C/db
All is good. Thanks!
BTW - doas is a very simple replacement for sudo. https://news.ycombinator.com/item?id=9914693
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.