Operating System - HP-UX
1754016 Members
7429 Online
108811 Solutions
New Discussion юеВ

unable to send mails from sendmail and mailx

 
trilok_pvp
Frequent Advisor

unable to send mails from sendmail and mailx

Hi,

Unable to send mails from HP unix server. I am getting a error message. Upto 2 days back its working fine. After restarting the server, its not working

/etc/mail/sendmail.cf: line 0: WARNING: World writable directory /etc
/etc/mail/sendmail.cf: line 691: fileclass: cannot open /etc/mail/sendmail.cw: World writable directory

7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: unable to send mails from sendmail and mailx

Have you fixed the permissions on /etc?
dr-xr-xr-x 30 bin bin 8192 Sep 17 21:46 /etc/
Vishu
Trusted Contributor

Re: unable to send mails from sendmail and mailx

Hi,

>>>>>>>
it is saying the following.

WARNING: World writable directory /etc

<<<<<<<<<<<<<<

so, set the permissions for /etc as

dr-xr-xr-x 39 bin bin 8192 Nov 4 11:13 /etc


F Verschuren
Esteemed Contributor

Re: unable to send mails from sendmail and mailx

same goes for /etc/mail if it is world writable it will not work.
in fact there must be 0 world writable dir/files in /etc
to fix this:

as root:
cd /etc
chmod o-w *

please also check the other file permisions on your system, it looks like somebody ore something changed file permisions, if manny permisions have changed please look in the logs how they are changes so we can advice how to get them back to normal...
Johnson Punniyalingam
Honored Contributor

Re: unable to send mails from sendmail and mailx

>>After restarting the server, its not working<<

what was done earlier to restaring the server

did you changed any folder permission for /etc ?

you need change backup - or It would good you campare the folder permission in other system and change
Problems are common to all, but attitude makes the difference
trilok_pvp
Frequent Advisor

Re: unable to send mails from sendmail and mailx

Hi,

The server etc folder shows the permission

drwxrwxrwx 30 bin bin 8192 Nov 3 20:14 etc

I need this should be

dr-xr-xr-x 30 bin bin 8192 Nov 3 20:14 etc

can u pls advice, how to change the permission for etc
Jean-Luc Oudart
Honored Contributor

Re: unable to send mails from sendmail and mailx

chmod 555 /etc

check with ls -ld /etc

Regards
Jean-Luc
fiat lux
Johnson Punniyalingam
Honored Contributor

Re: unable to send mails from sendmail and mailx

>>I need this should be

dr-xr-xr-x 30 bin bin 8192 Nov 3 20:14 etc

can u pls advice, how to change the permission for etc<<<


chmod 555 /etc
Problems are common to all, but attitude makes the difference