Templates don't get copied when creating new queue


#1

hi

I did a clean install of 1.0.7 on FreeBSD 4.3 and whenever
I try ./rtadmin queue -create myqueue
I get:
cp: /usr/local/rt/etc/templates/queues/myqueue/autoreply: Permission denied
cp: /usr/local/rt/etc/templates/queues/myqueue/comment: Permission denied
cp: /usr/local/rt/etc/templates/queues/myqueue/correspondence: Permission denied
… and so on…

the problem is that rtadmin is suid to rt user and the myqueue
directory gets created as:
dr-xr-xr-x 2 rt rt 512 Jan 18 08:19 myqueue

so the rt user has no permition to copy files into that directory.
The workaround is to chmod and remove the suid off the rtadmin, create
the queue as root, then suid rtadmin back.

Is there a way to fix this and how?

any advice greatly appreciated.

slava