<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kurth</id>
	<title>Request Tracker Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kurth"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/wiki/Special:Contributions/Kurth"/>
	<updated>2026-08-22T17:58:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=RecoverRootPassword&amp;diff=27170</id>
		<title>RecoverRootPassword</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=RecoverRootPassword&amp;diff=27170"/>
		<updated>2023-06-26T22:24:52Z</updated>

		<summary type="html">&lt;p&gt;Kurth: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The topic of recovering root password comes up frequently in the [[MailingLists]].&lt;br /&gt;
&lt;br /&gt;
Here are some answers.&lt;br /&gt;
&lt;br /&gt;
The original (default) &#039;&#039;&#039;RT root user&#039;&#039;&#039; password is &amp;quot;password&amp;quot;, not the password you set in RT_SiteConfig.pm (which is your DBMS root user password), nor the password of your &#039;&#039;&#039;Unix&#039;&#039;&#039; root user.&lt;br /&gt;
&lt;br /&gt;
If you over-write, corrupt, or lose the root password, there are a few ways to recover it.&lt;br /&gt;
&lt;br /&gt;
== Easiest way ==&lt;br /&gt;
&lt;br /&gt;
Q: I lost the root password how can I reset it?&lt;br /&gt;
&lt;br /&gt;
A:&lt;br /&gt;
    perl -I/opt/rt4/local/lib -I/opt/rt4/lib \&lt;br /&gt;
     -MRT -MRT::User \&lt;br /&gt;
     -e&#039;RT::LoadConfig(); RT::Init(); my $u = RT::User-&amp;amp;gt;new($RT::SystemUser); $u-&amp;amp;gt;Load(&amp;quot;root&amp;quot;); $u-&amp;amp;gt;SetPassword(&amp;quot;secret&amp;quot;)&#039;&lt;br /&gt;
&lt;br /&gt;
The above also works for rt5, just adjust the include path to your rt installation (typically /opt/rt5).&lt;br /&gt;
&lt;br /&gt;
== Use another known password ==&lt;br /&gt;
&lt;br /&gt;
Use SQL to copy the known password from some other user into the root password.&lt;br /&gt;
&lt;br /&gt;
== Generate a new password ==&lt;br /&gt;
&lt;br /&gt;
=== SQL ===&lt;br /&gt;
&lt;br /&gt;
Use base64 encoded MD5 of the word &#039;password&#039;. This should work with all recent RT versions. Before you set the password you must switch to the RT Database.&lt;br /&gt;
 mysql&amp;amp;gt; UPDATE Users SET Password=&#039;X03MO1qnZdYdgyfeuILPmQ&#039; WHERE Name=&#039;root&#039;;&lt;br /&gt;
&lt;br /&gt;
For RT4 use the default enry (root/password):&lt;br /&gt;
 mysql&amp;amp;gt; UPDATE Users SET Password=&#039;!bcrypt!10!xijhhtbzipG6.EsQwgic7.D1mUs2tC0yN4iNjOWS9Za8gAtKTzTlW&#039; WHERE Name=&#039;root&#039;;&lt;br /&gt;
&lt;br /&gt;
Or...&lt;br /&gt;
 mysql&amp;amp;gt; UPDATE Users SET Password=md5(&#039;password&#039;) WHERE Name=&#039;root&#039;;&lt;br /&gt;
&lt;br /&gt;
Or very old crypt variant.&lt;br /&gt;
 mysql&amp;amp;gt; UPDATE Users SET Password=ENCRYPT(&#039;password&#039;,&#039;SA&#039;) WHERE Name=&#039;root&#039;;&lt;br /&gt;
&lt;br /&gt;
== Enable root user ==&lt;br /&gt;
&lt;br /&gt;
Q: Passwort is reset, but i still can not log in. My log says:&lt;br /&gt;
&lt;br /&gt;
 Disabled user root tried to log in&lt;br /&gt;
&lt;br /&gt;
A: You have to (re-)enable the root user:&lt;br /&gt;
&lt;br /&gt;
Find out the id of root (usually it&#039;s 12):&lt;br /&gt;
 mysql&amp;amp;gt; SELECT * FROM Users WHERE Name=&#039;root&#039;;&lt;br /&gt;
Check if root is disabled:&lt;br /&gt;
 mysql&amp;amp;gt; SELECT * FROM Principals WHERE id=12;&lt;br /&gt;
Enable root:&lt;br /&gt;
 mysql&amp;amp;gt; UPDATE Principals SET Disabled=0 WHERE id=12;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
[[PasswordsInDB]]&lt;/div&gt;</summary>
		<author><name>Kurth</name></author>
	</entry>
</feed>