Hi Bruce,
Bruce Guenter wrote:
>
> On Fri, Aug 18, 2000 at 04:38:40PM +0200, Lars Pfuhl wrote:
> > qmail-queue -rws--x--x qmailq qmail <-- this is now my shell-script
> > qmail-queue-old -rws--x--x qmailq qmail <-- the original qmail-queue
>
> Shell scripts must be readable by the userid that is trying to execute
> them. The wrapper script also does not need to be (and should not be
> for security reasons) setuid. Make qmail-queue mode 755 instead of > 4711.
Thanks for helping me.
I changed it but it doesn't work.
1. Is it o.k. that the owner of the shell-script is qmailq?
Now I have:
qmail-queue -rwxr-xr-x qmailq qmail <-- this is my shell-script
qmail-queue-old -rws--x--x qmailq qmail <-- the original
qmail-queue
2. Is the shell-script o.k.?
I have:
#!/bin/sh
exec /var/qmail/bin/qmail-filter /var/qmail/bin/my-filter
3. Who must be the owner of my-filter, root or qmailq (I tried qmailq
and root but it doesn't work, the permissions are 755) ?
4. My error code is now (after I changed some things):
qq write error or disk full (#4.3.0)
5. I give you the perl script (it works but sometimes you don't know):
#!/usr/bin/perl -w
while (<>) {
s/Lars/Lars Pfuhl/;
print
}
I hope anyone has an idea.
Thanks in advance!
Lars