Whe trying to start sendmail i getting following error

Hi expert ,

When i trying to start sendmail i getting the following error : pls help me

# ./sendmail start
# 451 4.0.0 /etc/mail/sendmail.cf: line 77: fileclass: cannot open /etc/mail/local-host-names: World writable directory
451 4.0.0 /etc/mail/sendmail.cf: line 472: fileclass: cannot open /etc/mail/trusted-users: World writable directory.

*************************************************
My local-host-name file is empty
*my trusted-users file contains root

What to do now ! what to check now!

thanks in advance.

The error message suggests that /etc/mail is world writable, so you have to change the permissions to whatever sendmail requires.

hi sysgate,

if i gave 777 also same error !

i have used
# chmod 777 mail & chmod 777 for local-host-names & chmod 777 for trusted-users

It complains because the permissions are insecure, not because they are too tight. You need to set them to something like 400. chmod 777 is basically never correct, anyway.

try chmod 775 which withdraws the world writeable privilege.

hi era,johnf

I have tried both the permission 400 and 755 !

i m getting same error.

what to do?
thanks

Read the documentation to see what the permissions should really be.