Problems with permissions in ~qscand/.spamassassin subdir

Edilmar LISTAS <[email protected]>
Newsgroups gmane.mail.qmail.scanner
Message-ID <[email protected]>
Hi,

I have an environment with the following softwares:

I have a server running:
- Fedora Core 2 + kernel 2.6.10-1.8_FC2
- netqmail 1.05 + ucspi 0.88 + daemon-tools 0.76 + patches (site lwq)
- netqmail-1.05-tls-smtpauth-20060105.patch (SMTP authentication)
- badrcptto.patch
- vpopmail 5.4.0 + sqwebmail 4.0.7 + autorespond 2.0.4 + 
ezmlm-0.53-idx-0.41 + qmailadmin 1.2.9

Today I update the mail scanning with new versions of:
- qmail-scanner-2.01 + Mail-SpamAssassin-3.1.7 + clamav 0.88.7

Then, I restarted all mail services from Qmail + spamd.

The qmail-scanner is running fine, calling spamd and clamd to scan/check 
mail messages.

PROBLEM:
It is appearing error messages about "permission denied" (Permissão 
negada) in subdir ~qscan/.spamassassin.
Dec 15 16:54:55 serv spamd[22772]: mkdir /home/qscand/.spamassassin: 
Permissão negada at /usr/lib/perl5/site_perl/5.8.3/Mail/SpamAssassin.pm 
line 1530
Dec 15 16:55:00 serv spamd[22772]: mkdir /home/qscand/.spamassassin: 
Permissão negada at /usr/lib/perl5/site_perl/5.8.3/Mail/SpamAssassin.pm 
line 1530
Dec 15 16:55:00 serv spamd[22772]: locker: safe_lock: cannot create tmp 
lockfile 
/home/qscand/.spamassassin/auto-whitelist.lock.serv.intersite.com.br.22772 
for /home/qscand/.spamassassin/auto-whitelist.lock: Permissão negada
Dec 15 16:55:00 serv spamd[22772]: auto-whitelist: open of 
auto-whitelist file failed: locker: safe_lock: cannot create tmp 
lockfile 
/home/qscand/.spamassassin/auto-whitelist.lock.serv.intersite.com.br.22772 
for /home/qscand/.spamassassin/auto-whitelist.lock: Permissão negada

Before the updating, the permissions were:
drwx------ qscand qscand /home/qscan
drwx------ qscand qscand /home/qscan/.spamassassin
and all worked fine with old versions...

I restarted the servers with root user.

The users running each server are:
[root@intersite qscand]# ps aux | grep qmail
root      3546  0.0  0.0  1360  268 ?        S    Nov21   0:00 supervise 
qmail-smtpd
root      3548  0.0  0.0  1984  272 ?        S    Nov21   0:00 supervise 
qmail-send
qmails    2497  0.0  0.0  3100  356 ?        S    17:33   0:00 qmail-send
qmaill    2498  0.0  0.0  2572  272 ?        S    17:33   0:00 
/usr/local/bin/multilog t s5000000 /var/log/qmail
qmaill    2499  0.0  0.0  2716  328 ?        S    17:33   0:00 
/usr/local/bin/multilog t /var/log/qmail/smtpd
vpopmail  2501  0.0  0.0  3628  476 ?        S    17:33   0:00 
/usr/local/bin/tcpserver -v -R -l serv.intersite.com.br -x 
/etc/tcp.smtp.cdb -c 20 -u 89 -g 89 0 smtp /var/qmail/bin/qmail-smtpd 
/home/vpopmail/bin/vchkpw /bin/true
root      2504  0.0  0.0  3300  308 ?        S    17:33   0:00 
qmail-lspawn ./Maildir/
qmailr    2505  0.0  0.0  1536  312 ?        S    17:33   0:00 qmail-rspawn
qmailq    2506  0.0  0.0  2196  308 ?        S    17:33   0:00 qmail-clean
vpopmail  2582  0.0  0.1  4712  684 ?        S    17:34   0:00 
/var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true
qmailq    5400  0.0  0.0  2884  276 pts/3    T    17:42   0:00 qmail-queue
qscand    9823  1.8  1.1  7836 5708 ?        S    17:50   0:00 
/usr/bin/perl -T /dev/fd/3//var/qmail/bin/qmail-scanner-queue.pl
qscand    9857  2.7  1.1  8940 5732 ?        S    17:50   0:00 
/usr/bin/perl -T /dev/fd/3//var/qmail/bin/qmail-scanner-queue.pl
qscand    9858  2.8  1.1  8508 5712 ?        S    17:50   0:00 
/usr/bin/perl -T /dev/fd/3//var/qmail/bin/qmail-scanner-queue.pl
qscand    9887  3.6  1.1  7820 5712 ?        S    17:50   0:00 
/usr/bin/perl -T /dev/fd/3//var/qmail/bin/qmail-scanner-queue.pl
vpopmail  9896  0.0  0.0  3628  484 ?        S    17:50   0:00 
/usr/local/bin/tcpserver -v -R -l serv.intersite.com.br -x 
/etc/tcp.smtp.cdb -c 20 -u 89 -g 89 0 smtp /var/qmail/bin/qmail-smtpd 
/home/vpopmail/bin/vchkpw /bin/true
qscand    9897  4.6  1.1  7860 5712 ?        S    17:50   0:00 
/usr/bin/perl -T /dev/fd/3//var/qmail/bin/qmail-scanner-queue.pl

[root@intersite qscand]# ps aux | grep spam
root      2455  0.3  5.0 31280 25552 ?       S    17:33   0:03 
/usr/bin/spamd -d -c -m5 -H -r /var/run/spamd.pid
root      2525  6.2  5.4 33464 27720 ?       S    17:33   1:07 spamd child
root     10353  9.1  5.2 32316 26640 ?       S    17:50   0:04 spamd child

I had tried to change permissions allowing "root group all access (rwx)" 
to ~qscan homedir and subdir .spamassassin (also to files into 
.spamassassin), but it didn't work.

Then, the only way to solve "temporarily" the problem was to give "rwx 
to others" to ~qscan homedir and subdir .spamassassin, and "rw to 
others" to files into .spamassassin.

I don't know how to discover the real user that needs access to 
.spamassassin, to solve this problem.

Thanks for any help...


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.