Talk:RecoverSuperUserRights

From Request Tracker Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Unfortunately it didn't work for me. I assume I ran the commands correctly, please see below. Any insight would be helpful.

bahadmin1@rtserver:~$ 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"' Can't locate RT.pm in @INC (@INC contains: /opt/rt3/lib /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .). BEGIN failed--compilation aborted. bahadmin1@rtserver:~$

Thanks!

128.229.4.2 18:48, August 29, 2011 (UTC)