Problem creating queue

I just installed rt, tried to create the first queue:

rtadmin queue -create test

Welcome to Request Tracker 1.0.2
[answer a bunch of questions]
Are you satisfied with your answers [N]:y
cp: /usr/local/share/rt/etc/templates/queues/test/autoreply: Permission denied
cp: /usr/local/share/rt/etc/templates/queues/test/comment: Permission denied
cp: /usr/local/share/rt/etc/templates/queues/test/correspondence: Permission denied
cp: /usr/local/share/rt/etc/templates/queues/test/error: Permission denied
cp: /usr/local/share/rt/etc/templates/queues/test/give: Permission denied
cp: /usr/local/share/rt/etc/templates/queues/test/respond: Permission denied
cp: /usr/local/share/rt/etc/templates/queues/test/steal: Permission denied
cp: /usr/local/share/rt/etc/templates/queues/test/transaction: Permission denied
cp: /usr/local/share/rt/etc/templates/queues/test/web_create: Permission denied
Queue test successfully created.

It looks as if this is happening as a result of this line of code, from admin.pm:

system(“cp”, “-rp”, “$rt_dir/lib/generic_templates”,“$template_dir/queues/$in_queue_id”);

The directories being copied do not have user-write set:

ls -l /usr/local/share/rt/lib

total 3
dr-xr-xr-x 2 root wheel 512 May 19 23:11 generic_templates
dr-xr-xr-x 2 root wheel 512 May 19 23:11 images
dr-xr-xr-x 5 root wheel 512 May 19 23:11 rt

The code is being run as user “rt”, so the queues/test directory is created,
but none of the subdirectories. I did a chmod u+w to allow the copy, but I’m
wondering if the makefile set the permissions incorrectly or something.

You should chmod -R rt * in the top rt directory. That will hopefully solve
things.

-Feargal.

Feargal Reilly,
Systems Administrator,
The CIA.

That should probably be:

chmod -R rt .

Stephen Hauskins
UCSC

That should probably be:

chmod -R rt .

Stephen Hauskins
UCSC

Oh yeah…

That should probably be:

chmod -R rt .

Feargal Reilly,
Systems Administrator,
The CIA.
Ph: +353-86-8157621.

“A goldfish was his muse, eternally amused”
-Shelley. (Not the dead one though)