[rt-users] problem creating queue

Guy Middleton guy at gnac.com
Fri May 19 23:28:31 EDT 2000


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.





More information about the rt-users mailing list