[rt-users] Upgraded to 3.6.6 and superuser functionality missing
Karl Boyken
boyken at divms.uiowa.edu
Tue Feb 19 14:30:27 EST 2008
One additional bit of info:
When I run the Perl code from Wiki that's supposed to restore superuser,
I get "Principal 12 not found." root has id 12 in the Users table.
Here's the Perl code:
/usr/bin/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"'
In mysql, a "select * from Principals where id='12';" yields an entry
for root:
+----+---------------+----------+----------+
| id | PrincipalType | ObjectId | Disabled |
+----+---------------+----------+----------+
| 12 | User | 12 | 0 |
+----+---------------+----------+----------+
Karl
--
Karl Boyken, system administrator
karl-boyken at uiowa.edu
303A MLH, Dept. of Comp. Sci.
http://www.cs.uiowa.edu/~boyken/
The U. of Iowa, Iowa City, IA 52242 319-335-2730 (voice)
319-335-3668 (fax)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3257 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20080219/86cc893b/attachment.bin>
More information about the rt-users
mailing list