Wikia

Request Tracker Wiki

Watchlist Recent changes

RecoverRootPassword

The topic of recovering root password comes up frequently in the MailingLists.

Here are some answers.

The original (default) RT root user password is "password", not the password you set in RT_SiteConfig.pm (which is your DBMS root user password), nor the password of your Unix root user.

If you over-write or corrupt the root password, there are a few ways to recover it.

Contents

Easiest way Edit

Q: I lost the root password how can I reset it?

A:

perl -I/opt/rt3/local/lib -I/opt/rt3/lib \
    -MRT -MRT::User \
    -e'RT::LoadConfig();RT::Init(); my $u = RT::User->new($RT::SystemUser); $u->Load("root"); $u->SetPassword("secret")'



Use another known password Edit

Use SQL to copy the known password from some other user into the root password.

Generate a new password Edit

SQL Edit

Use base64 encoded MD5 of the word 'password'. This should work with all recent RT versions. Before you set the password you must switch to the RT Database.

mysql> UPDATE Users SET Password='X03MO1qnZdYdgyfeuILPmQ' WHERE Name='root';

Or...

mysql> UPDATE Users SET Password=md5('password') WHERE Name='root';

Or very old crypt variant.

mysql> UPDATE Users SET Password=ENCRYPT('password','SA') WHERE Name='root';

See also Edit

PasswordsInDB

Pages on Request Tracker Wiki

Add a Page
855pages on
this wiki

Latest Photos

Add a Photo
28photos on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki