So I was installing ON for my first time on a Debian Jessie machine. I added the package repositories, and installed the packages, and then the documents say I should put my password in ~oneadmin/.one/one_auth… I looked in that file, and it was something long and random and not even slightly memorable, so I changed it to something I could remember, and then, as per the install doc, su’ed to oneadmin, and ran “one start”, and it turns out it was already started!
That should be fine, but I didn’t keep a copy of the old password! Now I don’t seem to be able to do ANYTHING. For example, “oneuser list” returns the error “[UserPoolInfo] User couldn’t be authenticated, aborting call.”
I also can’t log in using “oneuser login” and the password I know that is in the .one/one_auth…
So I tried googling the problem, but the answer seems to be either log in as another admin (but in my case, none others exist), or manually change the hash in the database… So I tried the latter:
one stop
sqllite3 one.db
update user_pool set body="…" where name=“oneadmin”;
I created a new hash by running " echo password | openssl sha1" and then edited it into the xml in the body
and then I restarted one…
It worked not at all.
Any ideas how I can reset this and get back to square one? (heh. Pun not intended)