[rt-users] Root user rights
Jesse Vincent
jesse at bestpractical.com
Fri Jul 2 12:37:47 EDT 2004
On Fri, Jul 02, 2004 at 12:33:08PM -0400, Jesse Vincent wrote:
>
> 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"'
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"'
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> RT Developer and Administrator training is coming to LA, DC and Frankfurt this spring and summer.
> http://bestpractical.com/services/training.html
>
> Sign up early, as class space is limited.
--
More information about the rt-users
mailing list