# Admin token recreate

**URL:** <https://vaultwarden.discourse.group/t/admin-token-recreate/4302>\
**Category:** Help\
**Created:** [January 11, 2025, 5:49pm UTC](https://vaultwarden.discourse.group/t/admin-token-recreate/4302 "2025-01-11T17:49:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheChaser](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@TheChaser](https://vaultwarden.discourse.group/u/TheChaser)\
**Post date:** [January 11, 2025, 5:49pm UTC](https://vaultwarden.discourse.group/t/admin-token-recreate/4302/1 "2025-01-11T17:49:49Z")

</div>

I can’t no longer acces the mysite.be/admin because I no longer have the password

I have made a new admin token.  
but where do I place it?  
removing the container and remaking it with  
sudo docker run -d --name vaultwarden -e ADMIN\_TOKEN=‘-token-’ -v /vw-data/:/data/ --restart unless-stopped -p 801:80 vaultwarden/server:latest

does not seem to replace the password

please help

---

<div class="post-metadata">

**Author:** ![TheChaser](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@TheChaser](https://vaultwarden.discourse.group/u/TheChaser)\
**Post date:** [January 11, 2025, 5:54pm UTC](https://vaultwarden.discourse.group/t/admin-token-recreate/4302/2 "2025-01-11T17:54:44Z")

</div>

for future users:  
cd /vm-data/  
ls  
sudo nano config.json  
replace the token  
stop container  
start container

I found it 🙂
