# 如何重置gitea管理员的密码？

**URL:** <https://forum.gitea.com/t/gitea/5186>\
**Category:** 中文求助(Chinese Only)\
**Created:** [May 8, 2022, 12:43pm UTC](https://forum.gitea.com/t/gitea/5186 "2022-05-08T12:43:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![XZH](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/xzh/32/2649_2.png) [@XZH](https://forum.gitea.com/u/XZH)\
**Post date:** [May 8, 2022, 12:43pm UTC](https://forum.gitea.com/t/gitea/5186/1 "2022-05-08T12:43:57Z")

</div>

我没有设置smtp，管理员密码也忘记了，请问怎么重置密码？

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [May 8, 2022, 12:44pm UTC](https://forum.gitea.com/t/gitea/5186/2 "2022-05-08T12:44:41Z")

</div>

用命令行 ./gitea admin --help
