“无法打开‘/etc/mail/trusted-users’:组可写目录”

“无法打开‘/etc/mail/trusted-users’:组可写目录”
[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]

都不/etc/mail/etc/mail/trusted-users组可写的。为什么 sendmail 会抱怨?

答案1

看起来你的/etc权限不对。权限应该是 755,并且由 root 拥有。因此,请执行以下命令并重试:

# chmod g-w /etc
# chown root:root /etc

答案2

请参阅 sendmail 附带的 README 文件:man sendmail

chmod go-w / /etc /etc/mail /usr /var /var/spool /var/spool/mqueue

http://www.textndata.com/forums/cant-startup-sendmail-help-61368.html

答案3

Fw/etc/mail/local-host-names用以下行替换 Fw-o /etc/mail/local-host-names

Ft/etc/mail/trusted-usersFt-o /etc/mail/trusted-users

在 sendmail.cf 和 submit.cf 中

相关内容