[rt-users] Root user rights

Jesse Vincent jesse at bestpractical.com
Fri Jul 2 12:33:08 EDT 2004


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"'



More information about the rt-users mailing list