List Info

Thread: process-quarantine utility trying to write to /root/tmp?




process-quarantine utility trying to write to /root/tmp?
user name
2007-11-23 15:39:54
Hello.

I'm getting these messages while running
process-quarantine.pl

util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195Aw9OdMtmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195Wg4JpZtmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195CKsT4Ctmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195lYBk9etmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195DgN6S5tmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195AWelWFtmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin91954dFozKtmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195moaN5otmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195y08XJEtmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195V0Ve1jtmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195C3P8jGtmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195KrkoRTtmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195rTOYUItmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195XMe1Y7tmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195Cgm2Qstmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195Hd53JXtmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195f4jXsptmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin91953ILfj1tmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195iOTAFstmp': Permission denied
util: secure_tmpfile failed to create file
'/root/tmp/.spamassassin9195d7hVeLtmp': Permission denied
print() on closed filehandle $tmpfile at
/usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/PerMsgStatu
s.pm
line 2470.
util: cannot open /root/tmp/.spamassassin9195d7hVeLtmp:
Permission denied at
/usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/Util.pm
line 1374.
reporter: pyzor report failed: reporter: exited with
non-zero exit code 1
2007-11-23 16:25:22 Maia: [process-quarantine-sub] Learned
mail item 70 as spam and reported it


Obviously, it is not able to write to /root/tmp (which I
think is a good thing.)...  But where did it get the idea
that /root/tmp was the place to be?

I am guessing I want to change it from /root/tmp to /tmp,
but, again, I don't know where to do that specifically.

Thanks for your anticipated assistance.

Tom


_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: process-quarantine utility trying to write to /root/tmp?
country flaguser name
United States
2007-11-23 16:40:04
Tom Stearn wrote:
>
> Obviously, it is not able to write to /root/tmp (which
I
> think is a good thing.)...  But where did it get the
idea
> that /root/tmp was the place to be?
>
> I am guessing I want to change it from /root/tmp to
/tmp,
> but, again, I don't know where to do that
specifically.
>
> Thanks for your anticipated assistance.
>   


One thought - are you running this as root? It should be run
as the
amavis or vscan user...
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: process-quarantine utility trying to write to /root/tmp?
country flaguser name
United States
2007-11-23 19:22:22
Tom Stearn wrote:
> Hello.
> 
> I'm getting these messages while running
> process-quarantine.pl
> 
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195Aw9OdMtmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195Wg4JpZtmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195CKsT4Ctmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195lYBk9etmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195DgN6S5tmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195AWelWFtmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin91954dFozKtmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195moaN5otmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195y08XJEtmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195V0Ve1jtmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195C3P8jGtmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195KrkoRTtmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195rTOYUItmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195XMe1Y7tmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195Cgm2Qstmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195Hd53JXtmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195f4jXsptmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin91953ILfj1tmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195iOTAFstmp': Permission
denied
> util: secure_tmpfile failed to create file
> '/root/tmp/.spamassassin9195d7hVeLtmp': Permission
denied
> print() on closed filehandle $tmpfile at
>
/usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/PerMsgStatu
s.pm
> line 2470.
> util: cannot open
/root/tmp/.spamassassin9195d7hVeLtmp:
> Permission denied at
>
/usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin/Util.pm
> line 1374.
> reporter: pyzor report failed: reporter: exited with
> non-zero exit code 1
> 2007-11-23 16:25:22 Maia: [process-quarantine-sub]
Learned
> mail item 70 as spam and reported it
> 
> 
> Obviously, it is not able to write to /root/tmp (which
I
> think is a good thing.)...  But where did it get the
idea
> that /root/tmp was the place to be?
> 
> I am guessing I want to change it from /root/tmp to
/tmp,
> but, again, I don't know where to do that
specifically.
> 
> Thanks for your anticipated assistance.
> 
Hello, Tom.

	I think what you are looking for is this line in your
amavisd.conf file:

$TEMPBASE = "$MYHOME/tmp";    # working directory,
needs to be created
manually

	Of course, yours is most likely set to
"/root/tmp" for some reason. So,
just change that to where ever you would like it to write
to.

Regards,
Janky Jay, III
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: process-quarantine utility trying to write to /root/tmp?
country flaguser name
United States
2007-11-27 13:20:41
It runs as amavis from its crontab entry.

> Tom Stearn wrote:
>>
>> Obviously, it is not able to write to /root/tmp
(which I
>> think is a good thing.)...  But where did it get
the
>> idea
>> that /root/tmp was the place to be?
>>
>> I am guessing I want to change it from /root/tmp
to
>> /tmp,
>> but, again, I don't know where to do that
specifically.
>>
>> Thanks for your anticipated assistance.
>>
>
>
> One thought - are you running this as root? It should
be
> run as the
> amavis or vscan user...
>


_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: process-quarantine utility trying to write to /root/tmp?
country flaguser name
United States
2007-11-27 13:32:08
I think I just figured it out...

I am logging into the machine as root, and then su'ing to
amavis.

But, for reasons I suspect I should know but cannot
remember, it retains /root/tmp as $TMPDIR.

So, it looks like the usage of $ENV{'TMPDIR'} sets things
to /root/tmp.

Which leads me to a follow-up question.  What is the
suggested method to insure that when run from the crontab
entry, the script is completing without errors?  Can I
check any files or tables for the results of what that
script does?

Thanks.

Tom


> Tom Stearn wrote:
>>
>> Obviously, it is not able to write to /root/tmp
(which I
>> think is a good thing.)...  But where did it get
the
>> idea
>> that /root/tmp was the place to be?
>>
>> I am guessing I want to change it from /root/tmp
to
>> /tmp,
>> but, again, I don't know where to do that
specifically.
>>
>> Thanks for your anticipated assistance.
>>
>
>
> One thought - are you running this as root? It should
be
> run as the
> amavis or vscan user...
>


_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: process-quarantine utility trying to write to /root/tmp?
user name
2007-11-28 15:54:43
On Nov 27, 2007 8:32 PM, Tom Stearn <tomedispatches.com> wrote:
> I think I just figured it out...
>
> I am logging into the machine as root, and then su'ing
to
> amavis.
>
> But, for reasons I suspect I should know but cannot
> remember, it retains /root/tmp as $TMPDIR.
>

check what your $MYHOME variable is in amavisd.conf, this
should have
nothing to do with your system $ENV{'TMPDIR'} settings.

Also, are you using
a) su amavis
or
b) su - amavis
to impersonate the amavis user?

the first one keeps your old user's environment (like $HOME
etc) and
should be avoiding if you rely on such variables.

-- 
Erik Weber
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: process-quarantine utility trying to write to /root/tmp?
user name
2007-11-29 07:47:59
Thanks for the comment.  I was using the first one, so,
I'll use the second and see what transpires

The only reason I mentioned $ENV{'TMPDIR'} is that I saw
that variable in the Util.pm file which I believe is being
called by process-quarantine.pl or is subordinates.

Thanks for the info.

Tom

> On Nov 27, 2007 8:32 PM, Tom Stearn <tomedispatches.com>
> wrote:
>> I think I just figured it out...
>>
>> I am logging into the machine as root, and then
su'ing
>> to
>> amavis.
>>
>> But, for reasons I suspect I should know but
cannot
>> remember, it retains /root/tmp as $TMPDIR.
>>
>
> check what your $MYHOME variable is in amavisd.conf,
this
> should have
> nothing to do with your system $ENV{'TMPDIR'}
settings.
>
> Also, are you using
> a) su amavis
> or
> b) su - amavis
> to impersonate the amavis user?
>
> the first one keeps your old user's environment (like
> $HOME etc) and
> should be avoiding if you rely on such variables.
>
> --
> Erik Weber
>


_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )