Fossil User Forum

howto reset stored remote/login password?
Login

howto reset stored remote/login password?

howto reset stored remote/login password?

(1) By jvdh (veedeehjay) on 2019-11-30 20:51:07 [link] [source]

I either forgot or have never used this but it sure must be possible:

the situation:

  1. password of remote repo specified when cloning is stored locally (i.e. the query whether to do that was confirmed).

  2. password now has been changed on remote repo (via login through web ui)

  3. push/pull etc between local client and remote server now (of course) fail since stored password is no longer valid

question: how to get a new password query for communication with the remote repo?

(2) By Stephan Beal (stephan) on 2019-11-30 20:55:58 in reply to 1 [link] [source]

i'm not 100% sure this will work, but try:

fossil remote-url https://name@host/path

Alternately, close the checkout, re-clone the repo, then re-open it with the --keep flag to keep any local changes you may have. (i would demonstrate, but am typing one-handed on a tablet :/.)

(3) By jvdh (veedeehjay) on 2019-11-30 21:57:22 in reply to 2 [link] [source]

that was it. I indeed remember now... thanks for solving this.

ps: yes I did re-clone prior to posting the question. that is of course possible but potentially tedious

pps: I also scanned the concatenation of all fossil help pages for "password" without a hit that would have solved the question. "fossil remote-url" is not really obvious if the user ever only does an initial clone from some repo with an invariant URL. so it might help to add this issue ("reset/change stored login password") in some way to suitable manpages (clone, maybe?) or initiate password query on failed login requests? does that make sense?

(4) By Stephan Beal (stephan) on 2019-11-30 22:01:14 in reply to 3 [link] [source]

i'm a little surprised that pull doesn't have a flag to force this. i'll take a look at that tomorrow (it's currently the middle of the night in my time zone).

(5) By jvdh (veedeehjay) on 2019-11-30 22:16:21 in reply to 4 [link] [source]

i'm a little surprised that pull doesn't have a flag to force this. i'll take a look at that tomorrow (it's currently the middle of the night in my time zone).

wich is the same as mine I believe. so tomorrow sounds like a good idea :)

(6) By Stephan Beal (stephan) on 2019-12-05 10:09:08 in reply to 4 [source]

It seems that pull does have an option for dealing with this:

  -B|--httpauth USER:PASS    Credentials for the simple HTTP auth protocol,
                             if required by the remote website

Passing the new login info "should" resolve the problem of an upstream password change. It looks like it doesn't have a way to force asking for the password on the console, though. The remote-url command does, in any case.