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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Bo Berglund
This is strange to me since I have not seen it before.
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 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?


--
Bo Berglund
Developer in Sweden

Reply | Threaded
Open this post in threaded view
|

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

Daniel Sahlberg
Den fre 14 aug. 2020 kl 13:35 skrev Bo Berglund <[hidden email]>:
This is strange to me since I have not seen it before.
I have svn installed on a newly set up RPi3 running Pi-OS (previously
named Raspbian) Linux.
I installed svn via apt.

Any ideas?


--
Bo Berglund
Developer in Sweden

You will most probably find your answer in this mailing list thread at @Dev: https://svn.haxx.se/dev/archive-2020-08/0004.shtml 

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.

You might be able to get this to work using a keyring, but I don't have any experience with it (I'm mostly a Windows guy).

I've been planning to check why the script provided by Daniel Shahaf doesn't work, because I would also like to be able to save passwords from time to time.

Kind regards
Daniel
Reply | Threaded
Open this post in threaded view
|

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

Bo Berglund
On Fri, 14 Aug 2020 13:47:59 +0200, Daniel Sahlberg
<[hidden email]> wrote:

>Den fre 14 aug. 2020 kl 13:35 skrev Bo Berglund <[hidden email]>:
>
>> This is strange to me since I have not seen it before.
>> I have svn installed on a newly set up RPi3 running Pi-OS (previously
>> named Raspbian) Linux.
>> I installed svn via apt.
>>
>> Any ideas?
>>
>>
>> --
>> Bo Berglund
>> Developer in Sweden
>>
>
>You will most probably find your answer in this mailing list thread
>at @Dev: https://svn.haxx.se/dev/archive-2020-08/0004.shtml
>
>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.

I don't know how that works, do the maintainers of distros really
recompile all of the content and modify the code in so doing?

>You might be able to get this to work using a keyring, but I don't have any
>experience with it (I'm mostly a Windows guy).
>
>I've been planning to check why the script provided by Daniel Shahaf
>doesn't work, because I would also like to be able to save passwords from
>time to time.
>

Is this a client modification and if so from which version?
Is it possible to install a specific (older) svn client version in a
Linux computer in order to have this fixed? If so how?
I am using apt in my scripts to install for example subversion...

And I am not really talking about cahching the password in
*plaintext*!
It could as well be encrypted, but what it should not do is launch a
GUI dialog to enter the password when the command is issued in a
terminal window!

Svn is a command line tool and therefore a password request should be
shown inside the terminal that is running the svn operation and not
pop up something that is incvisible to the user!!!!!

Whatever GUI wrappers like Tortoise do is irrelevant since in such
usage the entire user interaction is via the GUI.
In the terminal case NOT...


--
Bo Berglund
Developer in Sweden

Reply | Threaded
Open this post in threaded view
|

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

Bo Berglund
In reply to this post by Daniel Sahlberg
On Fri, 14 Aug 2020 13:47:59 +0200, Daniel Sahlberg
<[hidden email]> wrote:

>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.

I posted the same question now on the RPi forum referencing your reply
here. See:
https://www.raspberrypi.org/forums/viewtopic.php?p=1712685#p1712685


--
Bo Berglund
Developer in Sweden

Reply | Threaded
Open this post in threaded view
|

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

Daniel Sahlberg
In reply to this post by Bo Berglund

Den lör 15 aug. 2020 07:31Bo Berglund <[hidden email]> skrev:
On Fri, 14 Aug 2020 13:47:59 +0200, Daniel Sahlberg
<[hidden email]> wrote:

>Den fre 14 aug. 2020 kl 13:35 skrev Bo Berglund <[hidden email]>:
>
>> This is strange to me since I have not seen it before.
>> I have svn installed on a newly set up RPi3 running Pi-OS (previously
>> named Raspbian) Linux.
>> I installed svn via apt.
>>
>> Any ideas?
>>
>>
>> --
>> Bo Berglund
>> Developer in Sweden
>>
>
>You will most probably find your answer in this mailing list thread
>at @Dev: lo
>
>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.

I don't know how that works, do the maintainers of distros really
recompile all of the content and modify the code in so doing?

Definitely recompiling and changing compile time options. Sometimes also changing code but mostly if the distro require some specific provisions. 

>You might be able to get this to work using a keyring, but I don't have any
>experience with it (I'm mostly a Windows guy).
>
>I've been planning to check why the script provided by Daniel Shahaf
>doesn't work, because I would also like to be able to save passwords from
>time to time.
>

Is this a client modification and if so from which version?

Compile time defaults changed in 1.12.

Is it possible to install a specific (older) svn client version in a
Linux computer in order to have this fixed? If so how?

Depends on your distro, but probably better to recompile the current client and set the proper compile time option. See the message from Stefan Sperling detailing how OpenBSD handled tjis

I am using apt in my scripts to install for example subversion...

And I am not really talking about cahching the password in
*plaintext*!
It could as well be encrypted, but what it should not do is launch a
GUI dialog to enter the password when the command is issued in a
terminal window!

A keyring should be able to prompt for the password from the terminal, but I have never used them. Subversion support a few different options. 

I managed to improve Daniel Shahaf's tool to save the password, see

Svn is a command line tool and therefore a password request should be
shown inside the terminal that is running the svn operation and not
pop up something that is incvisible to the user!!!!!

Whatever GUI wrappers like Tortoise do is irrelevant since in such
usage the entire user interaction is via the GUI.
In the terminal case NOT...


--
Bo Berglund
Developer in Sweden

Reply | Threaded
Open this post in threaded view
|

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

Daniel Sahlberg
In reply to this post by Bo Berglund
Den lör 15 aug. 2020 07:44Bo Berglund <[hidden email]> skrev:
On Fri, 14 Aug 2020 13:47:59 +0200, Daniel Sahlberg
<[hidden email]> wrote:

>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.

I posted the same question now on the RPi forum referencing your reply
here. See:
https://www.raspberrypi.org/forums/viewtopic.php?p=1712685#p1712685

I realise that you are using version 1.10. I that time, AFIK, it was a compile time option to disable plain text password stores. So either Pi-os intentionally disabled it or they backported part of 1.12. However you should be getting a Pi-os centered answer in the forum. 


--
Bo Berglund
Developer in Sweden