Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 99511

Summary: qmail-scanner fails permissions checks
Product: Gentoo Linux Reporter: David Dewbre <kg6kvq>
Component: [OLD] ServerAssignee: Qmail Team (OBSOLETE) <qmail-bugs+disabled>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Dewbre 2005-07-19 04:36:50 UTC
Attempting to use qmail-scanner results in the following error.

Jul 19 11:30:53 www X-Qmail-Scanner-1.25st: [www112177265371810416] cannot open
/var/spool/qmailscan/qmail-scanner-queue-version.txt - did you initialise the
system by running "qmail-scanner-queue.pl -z"? - Permission denied

Running qmail-scanner-queue.pl -z does not resolve the issue.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 David Dewbre 2005-07-19 04:39:15 UTC
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 AMD Athlon(tm) XP 2100+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/alias /var/qmail/control
/var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi bash-completion berkdb bitmap-fonts crypt cups curl
emboss encode fam foomaticdb fortran gd gdbm gif gnome gpm gtk gtk2 imagemagick
imap imlib ipv6 jpeg kde ldap libg++ libwww mad mcal mikmod motif mp3 mpeg mysql
ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime
readline samba sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts xml2
xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-07-19 05:42:10 UTC
What are the permissions of /var/spool/qmailscan ?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-07-19 09:56:43 UTC
See comment #1
Comment 4 David Dewbre 2005-07-19 15:23:17 UTC
drwxr-xr-x   6 qscand qscand 4096 Jul 19 11:26 qmailscan

total 372
drwxr-x---  5 qscand qscand    4096 Jun 30 23:03 archive
-rw-------  1 qscand qscand       0 Jul 17 03:10 mailstats.csv
-rw-------  1 qscand qscand      20 Jul 17 03:10 mailstats.csv.1.gz
-rw-------  1 qscand qscand      20 Jul 10 03:10 mailstats.csv.2.gz
-rw-------  1 qscand nofiles    920 Jul  3 03:10 mailstats.csv.3.gz
-rw-------  1 qscand qscand    1991 Jul 19 11:26 qmail-queue.log
-rw-------  1 qscand qscand     600 Jul 17 03:10 qmail-queue.log.1.gz
-rw-------  1 qscand qscand     448 Jul 10 03:10 qmail-queue.log.2.gz
-rw-------  1 qscand root    289830 Jul  3 03:10 qmail-queue.log.3.gz
-rw-------  1 root   root        62 Jul 19 11:26 qmail-scanner-queue-version.txt
drwxr-x---  5 qscand qscand    4096 Jun 30 23:03 quarantine
-rw-r-----  1 root   root     12288 Jul 19 11:26 quarantine-attachments.db
-rw-r--r--  1 qscand qscand    7414 Jun 30 23:03 quarantine-attachments.txt
-rw-------  1 qscand qscand       0 Jul 17 03:10 quarantine.log
-rw-------  1 qscand qscand      20 Jul 17 03:10 quarantine.log.1.gz
-rw-------  1 qscand qscand      20 Jul 10 03:10 quarantine.log.2.gz
-rw-r--r--  1 qscand qscand      20 Jul  3 03:10 quarantine.log.3.gz
-rw-r-----  1 root   root     12288 Jul 14 05:23 settings_per_domain.db.tmp
drwx------  2 qscand root      4096 Jul 18 03:10 tmp
lrwxrwxrwx  1 root   root        14 Jun 30 23:03 viruses.log -> quarantine.log
drwxr-x---  5 qscand qscand    4096 Jun 30 23:03 working
Comment 5 Haplo 2005-10-02 15:33:47 UTC
I also have this 

Oct  2 15:31:32 kvasir X-Qmail-Scanner-1.25st: [kvasir112829229271811446] cannot
open /var/spool/qmailscan/qmail-scanner-queue-version.txt - did you initialise
the system by running "qmail-scanner-queue.pl -z"? - Permission denied


kvasir /var/spool/qmailscan # ls -l
total 1301
drwxr-x---  5 qscand qscand     120 Oct  2 15:14 archive
-rw-------  1 qscand nofiles 273777 Sep 30 23:34 mailstats.csv
-rw-------  1 qscand qscand  992574 Oct  2 15:28 qmail-queue.log
-rw-------  1 qscand root        61 Oct  2 15:28
qmail-scanner-queue-version.txtdrwxr-x---  5 qscand qscand     120 Oct  2 15:14
quarantine
-rw-r-----  1 qscand root     49152 Oct  2 15:14 quarantine-attachments.db
-rw-r--r--  1 qscand qscand    7414 Oct  2 15:14 quarantine-attachments.txt
-rw-r--r--  1 qscand qscand       0 Oct  2 15:14 quarantine.log
drwxr-x---  3 qscand qscand     112 Oct  2 15:28 tmp
lrwxrwxrwx  1 root   root        14 Oct  2 15:14 viruses.log -> quarantine.log
drwxr-x---  5 qscand qscand     120 Oct  2 15:14 working


kvasir /var/spool/qmailscan # ls -l /var/qmail/bin/qmail-scanner-queue*
-rws--x--x  1 qscand qscand   5844 Oct  2 15:14 /var/qmail/bin/qmail-scanner-queue
-rwxr-xr-x  1 qscand qscand 139291 Oct  2 15:14
/var/qmail/bin/qmail-scanner-queue.pl


kvasir /var/spool/qmailscan # emerge --info
Portage 2.0.51.22-r2 (hardened/x86/2.6, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.10-hardened-r3 i686)
=================================================================
System uname: 2.6.10-hardened-r3 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fstack-protector-all"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/alias /var/qmail/control
/var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fstack-protector-all"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache2 berkdb crypt curl gd geoip gif hardened imagemagick imap innodb
jpeg maildir memlimit mmx mpm-peruser mysql ncurses no-suexec nptl pam pcre perl
php pic pie png postgres python qmail readline sftplogging simplexml smtp snmp
spamassassin spell sse ssl tcpd vhost vhosts xinetd xml xml2 xsl zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY


Comment 6 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-14 18:52:12 UTC

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