2011年10月23日 星期日

開機啟動 httpd

chkconfig httpd on

sendmail 無法啟動

[root@ mail]# service sendmail start
Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
451 4.0.0 /etc/mail/sendmail.cf: line 570: fileclass: cannot open '/etc/mail/trusted-users': World writable directory
[FAILED]

解决办法:

经查实是与sendmail有关的文件权限设置有误,而非警告中提及的两个文件。

解决办法有两种:一为设置合理权限:

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

二为放松文件权限检查:替换/etc/mail/sendmail.cf 中第91行
Fw/etc/mail/local-host-names为Fw-o /etc/mail/local-host-names第588行Ft/etc/mail/trusted-users为Ft-o /etc/mail/trusted-users替换/etc/mail/submit.cf中第545行Ft/etc/mail/trusted- users为Ft-o /etc/mail/trusted-users即可顺利启动