常常裝完後跑一陣子就有權限問題,newsyslog.conf也改過..
原因出在創出/var/log/maillog的不是newsyslog,它只是替換壓縮而已

真正要改的是syslog-ng.conf或syslogd.conf,

syslogd不熟,syslog-ng.conf改法如下:


destination maillog { file("/var/log/maillog");}

替換:

destination maillog { file("/var/log/maillog" group(www) perm(0640));};
文章標籤
全站熱搜
創作者介紹
創作者 darren2000 的頭像
darren2000

四個字 堅持到底

darren2000 發表在 痞客邦 留言(0) 人氣(53)