# Lost oneadmin password

**URL:** <https://forum.opennebula.io/t/lost-oneadmin-password/2342>\
**Category:** Product Support\
**Created:** [June 7, 2016, 2:12am UTC](https://forum.opennebula.io/t/lost-oneadmin-password/2342 "2016-06-07T02:12:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MTO](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@MTO](https://forum.opennebula.io/u/MTO)\
**Post date:** [June 7, 2016, 2:12am UTC](https://forum.opennebula.io/t/lost-oneadmin-password/2342/1 "2016-06-07T02:12:30Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [June 7, 2016, 6:59am UTC](https://forum.opennebula.io/t/lost-oneadmin-password/2342/2 "2016-06-07T06:59:42Z")

</div>

Hi Richard,

You should generate the hash without the trailing newline character:

> echo -n password | openssl sha1

and then update the db file with the generated hash

If it does not help, as it is fresh install you can stop the opennebula service delete the one.db file and start it again.  
When there is no db file found it will create a new one using the credentials from ~/.one/one\_auth.

I hope this helps.  
Kind Regards,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![MTO](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@MTO](https://forum.opennebula.io/u/MTO)\
**Post date:** [June 7, 2016, 1:26pm UTC](https://forum.opennebula.io/t/lost-oneadmin-password/2342/3 "2016-06-07T13:26:22Z")

</div>

> [@atodorov\_storpool](#):
>
> You should generate the hash without the trailing newline character:
> 
> > echo -n password | openssl sha1
> 
> and then update the db file with the generated hash

AHA! That did it. Totally a smack-my-head moment. Thanks. Just for completeness, I also had to remember to stop and start one, which I after updating the database. 😃
