就像标题一样,我想知道我要修改哪个文件
设置maillog文件的权限为0644.我知道这是一个不好的做法,但我需要它,否则我的脚本每次都会失败。 我正在使用红帽5.6
干杯
如果您使用syslog,请迁移到rsyslog或syslog-ng。
rsyslog: $FileCreateMode默认已经设置为0644。
syslog-ng的:
filter f_mail { facility(mail); }; destination d_mail { file("/var/log/maillog" perm(0644)); }; log { source(s_local); filter(f_mail); destination(d_mail); };