1833832 Members
2414 Online
110063 Solutions
New Discussion

Sendmail

 
SOLVED
Go to solution
Ian Warner
Trusted Contributor

Sendmail

I recently re-booted my hp-ux server (running 11i) and keep getting this error on sendmail -

/etc/mail/sendmail.cf: line 691: fileclass: cannot open /etc/mail/sendmail.cw: W
orld writable directory
WARNING: World writable directory /var
451 /etc/mail/sendmail.cf: line 691: fileclass: cannot open /etc/mail/sendmail.c
w: World writable directory

Could someone please explain (in english) what this means.

TIA

IAn
Why did anyone invent unix?
3 REPLIES 3
Alex Lavrov.
Honored Contributor

Re: Sendmail

Here is your solution:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=837780


Alex


I don't give a damn for a man that can only spell a word one way. (M. Twain)
Indira Aramandla
Honored Contributor

Re: Sendmail

Hi Ian,

That menas the file sendmail.cf in /etc/mail directory is have privis to write for group and others.

the permissions of the file are

-rw-rw-rw- 1 bin bin 94312 Aug 24 08:47 sendmail.cf

where as the permissions should be

-rw-r--r-- 1 bin bin 94312 Aug 24 08:47 sendmail.cf

You can change the current permissions (666) to 644 for the file using the command chmod 644 /etc/mail/sendmail.cf


IA

Never give up, Keep Trying
Cem Tugrul
Esteemed Contributor
Solution

Re: Sendmail

Ian,

your problem seems "permission";

Step 1 - Verify files permission, make changes and restart sendmail daemon
(/sbin/init.d/sendmail stop | start). If this cannot solve the problem,
continue Step 2.

/usr/sbin/sendmail -r-sr-sr-t root mail (7555)
/usr/lib/sendmail -r-sr-sr-t root mail (7555)
/etc/ dr-xr-xr-x bin bin (555)
/etc/aliases -> /etc/mail/aliases lrwxr-xr-x root sys (755)
/etc/mail dr-xr-xr-x bin bin (555)
/etc/mail/aliases -r-r-r-- bin bin (444)
/etc/mail/aliases.db -rw-r-r-- root sys (644)
/etc/mail/sendmail.cf -r-r-r-- bin bin (444)
/etc/mail/sendmail.cw -rw-rw-rw- root sys (666)
/etc/nsswitch.conf -r-r-r-- root sys (444)
/etc/passwd -r-r-r-- root sys (444)
/etc/resolv.conf -rw-r-r-- root sys (644)
/home drwxr-xr-x root root (755)
/home/user_account -rwxr-xr-x uid users (755)
/home/user_account/.forward -rwxr-xr-x uid users (755)
/tmp drwxrwxrwx bin bin (777)
/usr/bin/rmail -r-sr-sr-x root mail (6555)
/var dr-xr-xr-x bin bin (555)
/var/adm drwxr-xr-x adm adm (755)
/var/adm/syslog dr-xr-xr-x root sys (555)
/var/adm/syslog/mail.log -r-r-r-- root root (444)
/var/mail drwxrwxr-x bin mail (775)
/var/mail/user_account -rw-rw---- uid mail (660)
/var/spool drwxr-xr-x bin bin (755)
/var/spool/mqueue drwxr-xr-x bin bin (755)
/var/spool/mqueue/qf* or df* -rw------- root mail (400)
/var/tmp drwxrwxrwx bin bin (777)

Step 2 - Rebuild Aliases files. Example below:
# /sbin/init.d/sendmail stop
Sendmail pid is 1238
Killing sendmail...
Sendmail killed.
# mv aliases.db /tmp
# mv aliases /tmp
# cd /usr/newconfig/etc/mail
# cp -p aliases /etc/mail
# cd /etc/mail
# ll aliase*
r-r-r-- 1 bin bin 870 Aug 8 2001 aliases
# newaliases
/etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total
# ll aliase*
r-r-r-- 1 bin bin 870 Aug 8 2001 aliases
rw-r-r-- 1 root mail 24576 Oct 31 13:09 aliases.db
# /sbin/init.d/sendmail start

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't