Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
[root@arcade mail]# ls -l /etc/ | grep mail; ls -l /etc/mail; service sendmail start
drwxr-xr-x.  2 root root       4096 2011-01-27 20:06 mail
-rw-r--r--   1 root root        272 2009-11-17 21:13 mailcap
-rw-r--r--   1 root root       1968 2010-10-26 14:44 mail.rc
total 192
-rw-r--r--  1 root root   469 2007-08-27 11:25 access
-rw-r-----. 1 root root 12288 2011-01-27 20:06 access.db
-rw-r--r--. 1 root root     0 2010-09-30 14:25 aliasesdb-stamp
-rw-r--r--  1 root root   233 2007-04-12 15:35 domaintable
-rw-r-----. 1 root root 12288 2011-01-27 20:06 domaintable.db
-rw-r--r--  1 root root  5584 2010-03-27 21:10 helpfile
-rw-r--r--  1 root root    64 2007-04-12 15:35 local-host-names
-rw-r--r--  1 root root   997 2007-04-12 15:35 mailertable
-rw-r-----. 1 root root 12288 2011-01-27 20:06 mailertable.db
-rwxr-xr-x  1 root root  2700 2008-12-19 13:23 make
-rw-r--r--  1 root root    92 2008-12-03 18:29 Makefile
-rw-r--r--  1 root root 58439 2010-03-27 21:10 sendmail.cf
-rw-r--r--  1 root root  7202 2008-12-03 18:29 sendmail.mc
-rw-r--r--  1 root root 41521 2010-03-27 21:10 submit.cf
-rw-r--r--  1 root root   941 2010-03-27 21:09 submit.mc
-rw-r--r--  1 root root   127 2007-04-12 15:35 trusted-users
-rw-r--r--  1 root root  1847 2007-04-12 15:35 virtusertable
-rw-r-----. 1 root root 12288 2011-01-27 20:06 virtusertable.db
Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 87: fileclass: cannot open '/etc/mail/local-host-names': Group writable directory
451 4.0.0 /etc/mail/sendmail.cf: line 596: fileclass: cannot open '/etc/mail/trusted-users': Group writable directory
                                                           [FAILED]

Neither /etc/mail nor /etc/mail/trusted-users is group-writable. Why is sendmail complaining?

share|improve this question
1  
What do the permissions on /etc look like? ls -ld /etc –  larsks Sep 22 '11 at 15:57
    
@larsks: drwxrwxr-x. 120 503 504 12288 2011-09-19 03:33 /etc. Should I tighten the perms on /etc then? I'm worried about what this might break. –  Lightness Races in Orbit Sep 22 '11 at 16:28
    
Yeah, /etc generally shouldn't be group writable. I wouldn't expect it to break anything. –  larsks Sep 22 '11 at 21:06
    
@larsks: Mercy buckets. Seems to be working well. –  Lightness Races in Orbit Sep 24 '11 at 0:38

1 Answer 1

up vote 5 down vote accepted

Looks like your /etc has wrong permission. It should be 755 and owned by root. So, do the following commands and try again:

# chmod g-w /etc
# chown root:root /etc
share|improve this answer
    
That's done it, and it doesn't seem to have broken anything either. Cheers! –  Lightness Races in Orbit Sep 22 '11 at 18:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.