Thank you very much
My system is Centos6.2/64bit
do not have the command "sealert"
Maybe not install
So I set setenforce 0, make selinux permissive
And it has no change for debug log

Tom

2012/7/13 Alvin Wong <alvinhoc...@gmail.com>

> Do what in this section
> (
> http://wiki.centos.org/HowTos/SELinux/#head-02c04b0b030dd3c3d58bb7acbbcff033505dd3af
> ):
> running `sealert -b` to see if the problem is SELinux-related.
>
> 2012/7/13 Feel Zhou <feelz...@gmail.com>:
> > Thanks Alvim's proposal
> > still the  same problem
> > do it before
> > drwxr-x---. amavis amavis unconfined_u:object_r:var_t:s0   amavis
> > after your command
> > drwxr-x---. amavis amavis unconfined_u:object_r:amavis_var_lib_t:s0
> amavis
> > debug log is the same
> >
> > Thanks again
> > TOM
> >
> >
> > 2012/7/13 Alvin Wong <alvinhoc...@gmail.com>
> >>
> >> Try running `restorecon -Rv /var/amavis` to fix SELinux context
> >>
> >> 2012/7/13 Feel Zhou <feelz...@gmail.com>:
> >> > Hello My friend
> >> >
> >> > Last time I setup amavis have some problem
> >> > First is packages about Convert:BinHex
> >> > Second is Permission denied
> >> > And I fix the first question
> >> > In Centos, use command
> >> > yum install perl-Convert-BinHex
> >> > But I can not fix the second question
> >> > What is the first message mean it? How can I fix it?
> >> >
> >> > [root@mail ~]# /usr/local/sbin/amavisd debug
> >> > Jul 13 00:11:14.833 mail.example.com /usr/local/sbin/amavisd[1331]:
> >> > logging
> >> > initialized, log level 0, syslog: amavis.mail
> >> > Jul 13 00:11:14.833 mail.example.com /usr/local/sbin/amavisd[1331]:
> PID
> >> > file
> >> > /var/amavis/amavisd.pid is inaccessible: Permission denied
> >> > PID file /var/amavis/amavisd.pid is inaccessible: Permission denied
> >> >
> >> > [root@mail var]# pwd
> >> > /var
> >> > [root@mail var]# ll
> >> > drwxr-x---.  7 amavis amavis  4096 Jul 12 22:55 amavis
> >> >
> >> > [root@mail amavis]# pwd
> >> > /var/amavis
> >> > [root@mail amavis]# ll
> >> > drwxr-x---. 2 amavis amavis 4096 Jul 12 22:55 db
> >> > drwxr-x---. 2 amavis amavis 4096 Jul 12 21:07 home
> >> > drwxr-x---. 2 amavis amavis 4096 Jul 12 21:07 tmp
> >> > drwxr-x---. 2 amavis amavis 4096 Jul 12 21:07 var
> >> > ## In this folder, there is no amavisd.pid
> >> >
> >> > [root@mail var]# cat /etc/passwd
> >> > clamav:x:500:500::/dev/null:/bin/false
> >> > amavis:x:501:501::/dev/null:/bin/false
> >> > vscan:x:502:502::/dev/null:/bin/false
> >> >
> >> > [root@mail var]# cat /etc/group
> >> > clamav:x:500:
> >> > amavis:x:501:
> >> > vscan:x:502:
> >> >
> >> > [root@mail etc]# vim amavisd.conf
> >> > # $lock_file = "$MYHOME/var/amavisd.lock";  # -L
> >> > # $pid_file  = "$MYHOME/var/amavisd.pid";   # -P
> >> >
> >> > Thank you for your time
> >> > TOM
> >
> >
>

Reply via email to