Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75738 - spamd 3.02 can't write '/var/run/spand.pid' when running as non-root user
Summary: spamd 3.02 can't write '/var/run/spand.pid' when running as non-root user
Status: RESOLVED DUPLICATE of bug 70124
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-26 16:39 UTC by Haim Ashkenazi
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Haim Ashkenazi 2004-12-26 16:39:23 UTC
Hi

I've just upgraded to spamd 3.02. after changing the options in '/etc/conf.d/spamd' (-m 5 -c -H -u clamav) I've started spamd. although it starts (ps -ef shows it) it can't write '/var/run/spamd.pid', and it can't be stopped with '/etc/init.d/spamd'.

I fixed it by changing the pid file to '/var/run/spamd/spamd.pid' but I don't know why it doesn't work. it worked in 2.6.x with the same user and permissions of '/var/run'.


Reproducible: Always
Steps to Reproduce:
1. specify non-root user in the start options (/etc/conf.d/spamd)
2. start spamd
3. check logs

Actual Results:  
although spamd starts, it can't write '/var/run/spamd.pid'.

Expected Results:  
write '/var/run/spamd.pid' :)

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r9 i686)
=================================================================
System uname: 2.6.9-gentoo-r9 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/
ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://195.56.77.10/
http://194.149.10.102/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acl apache2 apm arts avi berkdb bitmap-fonts crypt cups encode
foomaticdb fortran gdbm gif gtk gtk2 innodb ipv6 jpeg kde libwww mad mikmod
motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python
quicktime readline sdl slang spamassassin spell ssl svga tcpd tiff truetype xml2
xmms xv zlib"
Comment 1 David 2004-12-28 03:23:42 UTC
This is a duplicate of bug 70124.
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2005-03-19 04:55:11 UTC

*** This bug has been marked as a duplicate of 70124 ***