# Reset password of admin account on qnap mattermost

**URL:** <https://forum.mattermost.com/t/reset-password-of-admin-account-on-qnap-mattermost/13067>\
**Category:** Troubleshooting\
**Created:** [March 7, 2022, 1:34pm UTC](https://forum.mattermost.com/t/reset-password-of-admin-account-on-qnap-mattermost/13067 "2022-03-07T13:34:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vettalex](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@vettalex](https://forum.mattermost.com/u/vettalex)\
**Post date:** [March 7, 2022, 1:34pm UTC](https://forum.mattermost.com/t/reset-password-of-admin-account-on-qnap-mattermost/13067/1 "2022-03-07T13:34:47Z")

</div>

Hi, we have the Mattermost application installed on our Qnap. Unfortunately, those who installed it at the time, is no longer there and is no longer available, and we do not know the main user to be able to manage users, create them, delete them etc … How can we recover the information of the administration account by Mattermost? We have full access to the nas as admin.

Through the guide of Mattermost, we cannot understand the command or procedure to be carried out to do a sort of reset of the main account, of course without deleting the history of the chats in place.  
Thanks to everyone who can answer. Of course I opened a ticket on qnap, but it tells me to ask here …

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [March 7, 2022, 2:27pm UTC](https://forum.mattermost.com/t/reset-password-of-admin-account-on-qnap-mattermost/13067/2 "2022-03-07T14:27:48Z")

</div>

You could use this command to promote someone to an admin [Command Line Tools — Mattermost documentation](https://docs.mattermost.com/manage/command-line-tools.html#mattermost-roles-system-admin).

---

<div class="post-metadata">

**Author:** ![vettalex](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@vettalex](https://forum.mattermost.com/u/vettalex)\
**Post date:** [March 7, 2022, 3:10pm UTC](https://forum.mattermost.com/t/reset-password-of-admin-account-on-qnap-mattermost/13067/3 "2022-03-07T15:10:47Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/a/aa4fa2ec05093fa90c5cd77351461ad9b907aead.png)  
I believe the listed commands are not suitable for qnap. i should enter mattermost console … from qnap. How could I do?

---

<div class="post-metadata">

**Author:** ![vettalex](https://avatars.discourse-cdn.com/v4/letter/v/90db22/32.png) [@vettalex](https://forum.mattermost.com/u/vettalex)\
**Post date:** [March 7, 2022, 5:18pm UTC](https://forum.mattermost.com/t/reset-password-of-admin-account-on-qnap-mattermost/13067/4 "2022-03-07T17:18:05Z")

</div>

I understand the mistake. Mattermost is installed on qnap, in docker format, therefore to access it, you must first start the docker instance with:  
system-docker exec -it mattermost\_app\_1 /bin/sh

Then, you can use the mattermost commands found with the command:  
bin/platform -help

Hope this helps someone else

---

<div class="post-metadata">

**Author:** ![EdeD](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@EdeD](https://forum.mattermost.com/u/EdeD)\
**Post date:** [August 12, 2022, 3:14am UTC](https://forum.mattermost.com/t/reset-password-of-admin-account-on-qnap-mattermost/13067/5 "2022-08-12T03:14:20Z")

</div>

> [@vettalex](#):
>
> system-docker exec -it mattermost\_app\_1 /bin/sh
> 
> Then, you can use the mattermost commands found with the command:  
> bin/platform -help
> 
> Hope this helps someone else

Hi Vettalex,

My apologise if this is a dumb question, as I’m pretty new to this. I have access the console via SSH, yet after successfully logging into the console, I’m stuck with a menu that doesnt allow me to use the docker command that you have suggested.

Would really appreciate your help to what are the other steps that i have missed out to start the docker format, so that i can use the mattermost command to reset the administrator password?

Regards,

Edmund

---

<div class="post-metadata">

**Author:** ![agriesser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/agriesser/32/5644_2.png) [@agriesser](https://forum.mattermost.com/u/agriesser)\
**Post date:** [August 12, 2022, 3:27am UTC](https://forum.mattermost.com/t/reset-password-of-admin-account-on-qnap-mattermost/13067/6 "2022-08-12T03:27:18Z")

</div>

Hi Edmund and welcome to the Mattermost forums!

Is this the menu you are seeing?  
 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/1/11542747dbf51eb54b7f1b3eb0125d730b252bfb.png)

If so, press ‘Q’ and then maybe confirm that with ‘Y’ and you should be dropped to the normal shell.
