Create a admin user in gitea postgres #5649

Closed
opened 2025-11-02 06:31:53 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @BagaSiva on GitHub (Jun 27, 2020).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Hi All

I have deployed a Gitea POD. The backend is Postgres.

I need to create a admin user for Gitea. As its a first user, am not able to create it from GIT Rest API.

Please help how to create a first user from either gitea or postgres container.

Thanks in advance
Thanks
Siva
...

Screenshots

Originally created by @BagaSiva on GitHub (Jun 27, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description Hi All I have deployed a Gitea POD. The backend is Postgres. I need to create a admin user for Gitea. As its a first user, am not able to create it from GIT Rest API. Please help how to create a first user from either gitea or postgres container. Thanks in advance Thanks Siva ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/question label 2025-11-02 06:31:53 -06:00
Author
Owner

@lafriks commented on GitHub (Jul 7, 2020):

You can use gitea cli to do that check docs.gitea.io for more info

@lafriks commented on GitHub (Jul 7, 2020): You can use gitea cli to do that check docs.gitea.io for more info
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5649