Page 1 of 1

Why is svn not saving my password in Pi-OS?

Posted: Sat Aug 15, 2020 5:41 am
by Bosse_B
I posted the question below in the Subversion mail list since I thought it to be a svn issue, but the reply was:
TLDR: Saving passwords in plaintext is (from some version) a non-default compile time option.
You may try to convince the Pi-OS maintainers to enable this option again.
So here I am asking the same in the RPi forum:

I have svn installed on a newly set up RPi3 running Pi-OS (previously
named Raspbian) Linux.
I installed svn via apt.

The RPi3 has a GUI, which I can access via VNC through a VPN tunnel (I
am working remotely from home).

If I start a terminal in the GUI and navigate to the project wc dir
and then issue an svn up command a GUI dialog pops up on the side
asking me for a password. This happens every time so it seems not to
remember what I have entered.

Contrast this to when I access another non-GUI RPi running Raspbian using PuTTY.
When I use the svn up command there everything just executes as
expected and no password is requested because I entered it way back
when I checked out the wc.

Back to the new RPi3, if I access it through PuTTY instead then the
svn up command just does exactly nothing, it just sits there!
Probably it pushes a GUI login box onto the invisible GUI...

How can I configure svn such that it caches the password in the
same way as it has done on all of my other RPi units before?

I need to be able to work on this device BOTH via SSH login using
PuTTY and inside the GUI when connecting via VNC.

One difference of course is that the svn client on the RPi3 is a newer
version ( 1.10.4 r1850624) than what I have used before and what is
used on the svn server (1.9.7).

Any ideas?

Re: Why is svn not saving my password in Pi-OS?

Posted: Sat Aug 15, 2020 11:11 am
by DougieLawson
Build your own version from source code. You should be able to get an svn repo with the svn code in it.

https://subversion.apache.org/source-code.html

Re: Why is svn not saving my password in Pi-OS?

Posted: Sun Aug 16, 2020 7:25 am
by Bosse_B
DougieLawson wrote:
Sat Aug 15, 2020 11:11 am
Build your own version from source code. You should be able to get an svn repo with the svn code in it.

https://subversion.apache.org/source-code.html
I had a look at it...
I checked out the svn 1.10.6 tag to get the sources, turned out to be 123 Mb worth of files...
It turns out that you need a lot of dependencies in order to build svn yourself and I got lost in the maze.
I do not want to install stuff that will make my RPi3 or RPi4 compromized regarding the development I am doing myself...
And the INSTALL file is too general in its speak to help me.

Googling "build subversion binary from sources on Raspberry Pi" just returns pages describing how to set up a subversion server or client by retrieving svn via apt...

So this is probably not the way I can go. I need clearer instructions.

But it is a pity I cannot use svn from an SSH terminal session!

Solved: Why is svn not saving my password in Pi-OS?

Posted: Sun Dec 20, 2020 3:36 pm
by Bosse_B
It seems like I have found a solution to this now.
Edit the ~/.subversion/config file
Uncomment the following line:

Code: Select all

password-stores = gpg-agent,gnome-keyring,kwallet
Now (at least after a reboot) the login request is shown in the terminal from which the svn command was started.
If it actually saves the password I don't know but at least the command completes.