Root user rights

Hi,

I feel a little silly posting this question but here goes; I am new to
RT and have some how removed all privliges from the root user. Could
someone explain to me how i can give him back his privliges. Now i cant
create a ticket, or anything for that matter.

Any help would be appreciated.

Kind Regards

Shawn Jooste

ha ha ha…

Any way had you created any users and assigned them ‘big’ rights? If you
had, then you could login as that other user and grant roots his rights.

Or just go to the database, search it very well, see the table with rights
and modify it accordingly…BUT CAUTION!!!..BE careful with the database!!!

Third option is to and then from
the directory where you un-tarred(tar -xvzf)… your RT from.

And lastly, If all fails, Just reistall :-)…

Nice time but it seems you’re so inquisitive…How could you remove rights
from root?

Wilson
:slight_smile: >
:slight_smile: >Hi,
:slight_smile: >
:slight_smile: >I feel a little silly posting this question but here goes; I am new to
:slight_smile: >RT and have some how removed all privliges from the root user. Could
:slight_smile: >someone explain to me how i can give him back his privliges.
:slight_smile: >Now i cant
:slight_smile: >create a ticket, or anything for that matter.
:slight_smile: >
:slight_smile: >Any help would be appreciated.
:slight_smile: >
:slight_smile: >Kind Regards
:slight_smile: >

The following one-liner uses the RT API and the internal RT::SystemUser
to grant the root user the superuser safely. You’ll need to run this as
a local user that can access the RT config file.

Now on the wiki at
http://wiki.bestpractical.com/index.cgi?RecoverSuperUserRights

perl -I/opt/rt3/lib -MRT -e’RT::Lnew($RT::SystemUser); $u->Load(“root”);($val,$msg) = $u->PrincipalObj->GrantRight(Object=> $RT::System, Right => “SuperUser”); print “$msg\n”’

The following one-liner uses the RT API and the internal RT::SystemUser
to grant the root user the superuser safely. You’ll need to run this as
a local user that can access the RT config file.

Now on the wiki at
Request Tracker Wiki

perl -I/opt/rt3/lib -MRT -e’RT::Lnew($RT::SystemUser); $u->Load(“root”);($val,$msg) = $u->PrincipalObj->GrantRight(Object=> $RT::System, Right => “SuperUser”); print “$msg\n”’

There’s a copy and paste error there. It should be:

perl -I/opt/rt3/lib -MRT -e’RT::LoadConfig; RT::Init; my
$u=RT::User->new($RT::SystemUser); $u->Load(“root”); ($val,$msg) =
$u->PrincipalObj->GrantRight(Object=> $RT::System, Right =>
“SuperUser”); print “$msg\n”’