Changing user's permissions from outside of RT

Hello listmates,

If I need to change the user’s privilleges outside of the RT - and I do
have full administrative rights both on the RT host machine and within the
DB server - how do I do that?

Thanks.

Boris.

What is the scope of your definition of “outside” RT?

RT has a command line interface, and you can also run Perl scripts on the
RT host that interact directly with RT’s library code to achieve tasks.

One example of an operation that can be run directly on the RT host is this
script, which resets the root user’s password:

use lib ‘/opt/rt4/lib’;
use RT;
use RT::User;
RT->LoadConfig;
RT->Init;
my $u = RT::User->new(RT->SystemUser);
$u->Load(‘root’);
$u->SetPassword(‘secret’);

Altering database tables directly is another option, but one I’ve never
tried personally (and wouldn’t unless I had to, because I trust RT’s code
more than myself to alter table data without side effects).

What specific user privilege adjustments would you like to make?On 19 June 2014 05:30, Boris Epstein borepstein@gmail.com wrote:

Hello listmates,

If I need to change the user’s privilleges outside of the RT - and I do
have full administrative rights both on the RT host machine and within the
DB server - how do I do that?

Thanks.

Boris.


RT Training - Boston, September 9-10
http://bestpractical.com/training

Hi Alex,

Yes, this is pretty much what I had in mind. It just feels a bit odd that
you have to go to doing things programatically for some things that seem
trivial whereas more complex things seem to be easily doable via CLI.

Thanks.

Boris.On Sat, Jul 19, 2014 at 2:20 AM, Alex Peters alex@peters.net wrote:

What is the scope of your definition of “outside” RT?

RT has a command line interface, and you can also run Perl scripts on the
RT host that interact directly with RT’s library code to achieve tasks.

One example of an operation that can be run directly on the RT host is
this script, which resets the root user’s password:

use lib ‘/opt/rt4/lib’;
use RT;
use RT::User;
RT->LoadConfig;
RT->Init;
my $u = RT::User->new(RT->SystemUser);
$u->Load(‘root’);
$u->SetPassword(‘secret’);

Altering database tables directly is another option, but one I’ve never
tried personally (and wouldn’t unless I had to, because I trust RT’s code
more than myself to alter table data without side effects).

What specific user privilege adjustments would you like to make?

On 19 June 2014 05:30, Boris Epstein borepstein@gmail.com wrote:

Hello listmates,

If I need to change the user’s privilleges outside of the RT - and I do
have full administrative rights both on the RT host machine and within the
DB server - how do I do that?

Thanks.

Boris.


RT Training - Boston, September 9-10
http://bestpractical.com/training