[Rt-devel] Adding new users in command line

Dmitri Tikhonov dtikhonov at vonage.com
Wed Jul 26 13:35:20 EDT 2006

On Wed, 2006-07-26 at 20:17 +0330, Hamed Malek wrote:
> Hello,
> I've written a small script that adds new users in command line to RT3,
> which run by my other web applications for having central login system.
> I put my script in /usr/lib/perl5/vendor_perl/5.8.7/RT and it works
> correctly when I run it as root, but running it by Apache or other UNIX
> users I get some errors.
> Would someone tell me where should I add this file to @INC? or should I
> import anything else in my script?

I bet that's because /etc/rt3/RT_Config.pm is not readable by non-root
users...  Check permissions on /etc/rt3 and /etc/rt3/RT_Config.pm.  (Of
course, you may want to think twice about allowing non-root users read
RT configuration -- DB passwords may want protecting).

  - Dmitri.

More information about the Rt-devel mailing list