I created an admin user with a password, that contains a special character. Installation of Gitea was successful, but I can't login. I can't get new password, because it says:
Sorry, Register Mail Confirmation has been disabled.
I tried command gitea admin change-password
, but command is not recognized.
From your issue, any gitea command (like gitea admin change-password --username myusername --password asecurenewpassword
) ends up with:
gitea: command not found
If you installed from binary, you will note that the $PATH was not modified, and gitea
was called directly from its installation folder.
./gitea web
So you can do the same for changing the password:
cd /path/to/gitea
./gitea admin change-password --username myusername --password asecurenewpassword
Note that Robert Ranjan adds in the comments:
/path/to/gitea
is gitea's home path, where you find foldercustom
.
In my case gitea's home is/var/lib/gitea
. From this path, you should see file:custom/conf/app.ini
which is expected by default.