LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 07-24-2007, 02:19 AM   #1
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC20/ OES / CentOS
Posts: 606

Rep: Reputation: 32
owner of dir /var/spool/amavis is changed


Hello!

From time to time my amavisd stops working saying:

Quote:
tail -f /var/log/amavisd
...
..
.
Couldn't open lock file "/var/spool/amavis/amavisd.lock"
...
..
.
When I look at the directory I noticed that wwwrun (which is the user amavisd uses) has no rights to the direktory.

Quote:
# cd /var/spool/

drwx------ 72 vscan root 3496 2007-07-24 08:12 amavis/
Here the user and group amavisd uses:

Quote:
vi /etc/amavisd.conf

$daemon_user = 'wwwrun';
$daemon_group = 'daemon';

I`am 100% sure I did change the owner of the dir two times now but it always fells back to vscan. How can that be ?
 
Old 07-24-2007, 05:53 AM   #2
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: OpenBSD, Slackware, XP
Posts: 347

Rep: Reputation: 31
Amavisd's default user is vscan not unless you changed it to something else and the only way to change it is through /etc/amavisd.conf but if you are using a distro-specific package, it might have used only its default user as mentioned and manually changing amavisd.conf will not do.

And if in your case ClamAV is integrated with amavisd, amavisd must use the user and group that ClamAV uses in order to give ClamAV write permission to amavisd's quarantine directory.

----------
 
Old 07-24-2007, 06:14 AM   #3
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC20/ OES / CentOS
Posts: 606

Original Poster
Rep: Reputation: 32
Quote:
# Set the user and group to which the daemon will change if started as root
# (otherwise just keeps the UID unchanged, and these settings have no effect):
#$daemon_user = 'vscan';
#$daemon_group = 'vscan';
$daemon_user = 'wwwrun';
$daemon_group = 'daemon';

As I understand it, the "$daemon_user = 'wwwrun';" only takes effekt, if "started as root" and "otherwise just keeps the UID unchanged" which says me that there is something else which starts amavisd...

what could that be...


lets see...
 
Old 08-31-2007, 03:56 AM   #4
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC20/ OES / CentOS
Posts: 606

Original Poster
Rep: Reputation: 32
It seem as if SuSE added an automated restart.

Can somebody tell me how i can change that ?
 
Old 10-02-2007, 08:27 AM   #5
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: OpenBSD, Slackware, XP
Posts: 347

Rep: Reputation: 31
I admit that this is an already toooo late reply.

How's is it now?

One option to try (though I'm unsure) is to start amavisd-new in /etc/init.d/rc.local or to where it is appropriately located in your SuSE. But you would need to turn off amavisd starting through its default system startup.

The local start-up option I'm using is:

/usr/local/sbin/amavisd -u user start

Adjust the path accordingly.

Try it first through the command line.

-------
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to clear out /var/spool/clientmqueue jerlinuxdude Linux - Software 4 03-29-2012 03:02 AM
/usr/spool and /var/spool davidsrsb Slackware 1 04-06-2006 06:57 AM
/var/spool/clientmqueue chintanDesai Linux - Software 0 03-22-2004 04:07 PM
What is /var/spool/mqueue?? WorldBuilder Linux - General 4 05-07-2003 03:32 PM
/var/spool/mail/root j-me Linux - Newbie 5 02-14-2003 07:48 AM


All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration