Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.


like in the title, I would like to know which file I've to modify
to setup the permission on the maillog file as 0644. I know that is a bad practice but I need it otherwise my script fail everytime. I am using redhat 5.6
Cheers

share|improve this question

1 Answer 1

If you're using syslog, migrate to rsyslog or syslog-ng.

rsyslog: $FileCreateMode is already set to 0644 by default.

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); };
share|improve this answer
    
quanta I am using sysklogd so in this case what you propose? I've found this article, [link]linuxhelp.in/2010/10/… but here the usmak is setup as 077 and the permission about the maillog in my case are 0644 so, now I am little bit confused. –  marcodv Aug 6 '12 at 16:10
    
migrate to rsyslog or syslog-ng if possible. –  quanta Aug 7 '12 at 7:47

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.