<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Root password reset and more generally Gitea CLI usage]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I haven't been able to reset the root account password on my Gitea instance, and more generally, any command that I issue (<code>/home/git/gitea/gitea admin user list</code>) do fail.</p>
<p dir="auto">It appears that Gitea doesn't want to pick the custom location for configuration file, or that I don't know how to set it up correctly.</p>
<p dir="auto">Related discussion <a href="https://stackoverflow.com/questions/49057558/change-admin-password-in-gitea" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> on Stackoverflow.</p>
<p dir="auto"><code>su git bash -c "/home/git/gitea/gitea admin user change-password -u root -p badpassword -c "/app/data/app.ini" "</code></p>
<p dir="auto">Any help would be greatly appreciated</p>
<pre><code>root@6cb7d536-ceaa-4d26-b387-fbd54b1c02b6:/app/data# su git bash -c "/home/git/gitea/gitea user list"
2021/10/29 16:46:48 cmd/web.go:102:runWeb() [I] Starting Gitea on PID: 26034
2021/10/29 16:46:48 ...s/setting/setting.go:569:NewContext() [W] Custom config '/home/git/gitea/custom/conf/app.ini' not found, ignore this if you're running first time
2021/10/29 16:46:48 ...s/setting/setting.go:1164:CreateOrAppendToCustomConf() [F] failed to create '/home/git/gitea/custom/conf/app.ini': mkdir /home/git/gitea/custom: read-only file system
</code></pre>
]]></description><link>https://forum.cloudron.io/topic/5926/root-password-reset-and-more-generally-gitea-cli-usage</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 19:32:25 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/5926.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Oct 2021 17:09:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Root password reset and more generally Gitea CLI usage on Sat, 30 Oct 2021 10:36:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a></p>
<p dir="auto">Thanks for your extremely quick and helpful answer!</p>
<p dir="auto"><strong>It worked!</strong></p>
<p dir="auto">Side note: I have been using cloudron for about 2 years now, and I am a happy paying customer.</p>
<p dir="auto">The fact that it is the first question I had to ask so far is a testament to the quality of your work and documentation. Congratulations to the team!</p>
]]></description><link>https://forum.cloudron.io/post/38615</link><guid isPermaLink="true">https://forum.cloudron.io/post/38615</guid><dc:creator><![CDATA[luzeal]]></dc:creator><pubDate>Sat, 30 Oct 2021 10:36:02 GMT</pubDate></item><item><title><![CDATA[Reply to Root password reset and more generally Gitea CLI usage on Fri, 29 Oct 2021 17:32:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/luzeal" aria-label="Profile: luzeal">@<bdi>luzeal</bdi></a> Try something like:</p>
<pre><code>sudo -u git /home/git/gitea/gitea -c /run/gitea/app.ini admin user change-password -u root -p changeme123
</code></pre>
<p dir="auto">To explain:</p>
<ul>
<li>The app runs as <code>git</code> user (doesn't run as root)</li>
<li>The config file is located at <code>/run/gitea/app.ini</code></li>
<li>The gitea binary is at <code>/home/git/gitea/gitea</code></li>
</ul>
<p dir="auto">I will update our docs with this info.</p>
]]></description><link>https://forum.cloudron.io/post/38593</link><guid isPermaLink="true">https://forum.cloudron.io/post/38593</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 29 Oct 2021 17:32:09 GMT</pubDate></item></channel></rss>