cancel
Showing results for 
Search instead for 
Did you mean: 

send mail error

sameerK
Frequent Advisor

send mail error

When I run sendmail start command I get the below error.

/etc/mail/sendmail.cf: line 698: fileclass: cannot open/etc/mail/sendmail.cw': World writable directory

the permissions are as below
# ls -lad /etc/mail
Drwxrwxrwx 2 root sys 8192 Jun 20 17:46 /etc/mail

# ls -lad /var
drwxrwxrwx 25 bin bin 8192 Mar 31 2005 /var

amy suggestions pls
5 REPLIES
Ludovic Derlyn
Esteemed Contributor

Re: send mail error

hi,

It's seems that the rights must be 555 n not 777

Try it

regards

L-DERLYN
V.Manoharan
Valued Contributor

Re: send mail error

Hi sameet ,
This is a permission issue change the directory permission as below.
# ls -lad /var
dr-xr-xr-x 29 bin bin 1024 # ls -lad /etc/mail
dr-xr-xr-x 2 bin bin 1024
I suggest to do OS hardening as well for the system since seems to be permission are not set properly.

Thanks and regards
V.Manoharan
spex
Honored Contributor

Re: send mail error

# chown bin:bin /etc/mail
# chmod 555 /etc/mail
# /sbin/init.d/sendmail stop
# /sbin/init.d/sendmail start

PCS
Marvin Strong
Honored Contributor

Re: send mail error

/etc/mail cannot be 777, default is 555.
T. Money
Occasional Advisor

Re: send mail error

also make sure root permissions are correct:
# chmod 755 /
# ls -lad /
drwxr-xr-x 35 root sys 8192 Jan 7 14:11 /