Re: Newsyslog mode on /var/log/security?
Garance A Drosehn skrev: At 10:48 PM +0200 3/29/09, Roger Olofsson wrote: Dear mailing list, I seem to have forgotten something about /var/log/security and newsyslog.conf. I get wrong mode after the trim. Excerpt from /etc/newsyslog.conf: /var/log/security 644 7 5000 * JC Are you sure that's the only line you have for /var/log/security in your /etc/newsyslog.conf file? The distributed config file has: /var/log/security600 10 100* JC Obviously you have a different entry from that, but did you remove the original entry? Output from newsyslog -vn: chmod 600 /var/log/security.0.bz2 Why is the mode not 644? /etc/rc.d/syslogd restart and newsyslog restart have been performed. I tried changing the permissions-field in my newsyslog.conf from 600 to 644, and newsyslog worked correctly for me. Hi Garance, You are correct! I missed the original line. Silly me :^D Thank you very much! /R ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Newsyslog mode on /var/log/security?
At 8:08 AM +0200 3/30/09, Roger Olofsson wrote: Garance A Drosehn skrev: At 10:48 PM +0200 3/29/09, Roger Olofsson wrote: I seem to have forgotten something about /var/log/security and newsyslog.conf. I get wrong mode after the trim. Excerpt from /etc/newsyslog.conf: /var/log/security 644 7 5000 * JC Are you sure that's the only line you have for /var/log/security in your /etc/newsyslog.conf file? The distributed config file has: /var/log/security600 10 100* JC Obviously you have a different entry from that, but did you remove the original entry? Hi Garance, You are correct! I missed the original line. Silly me :^D Well, I should probably change newsyslog to do something different (he says vaguely) when the same file is specified multiple times. Thank you very much! You're welcome. -- Garance Alistair Drosehn = dros...@rpi.edu Senior Systems Programmer or g...@freebsd.org Rensselaer Polytechnic Institute; Troy, NY; USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Newsyslog mode on /var/log/security?
On Monday 30 March 2009 08:48:34 Garance A Drosehn wrote: Well, I should probably change newsyslog to do something different (he says vaguely) when the same file is specified multiple times. warnx() would be nice ;). -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Newsyslog mode on /var/log/security?
Dear mailing list, I seem to have forgotten something about /var/log/security and newsyslog.conf. I get wrong mode after the trim. Excerpt from /etc/newsyslog.conf: /var/log/security 644 7 5000 * JC Output from newsyslog -vn: chmod 600 /var/log/security.0.bz2 Why is the mode not 644? /etc/rc.d/syslogd restart and newsyslog restart have been performed. /R ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Newsyslog mode on /var/log/security?
At 10:48 PM +0200 3/29/09, Roger Olofsson wrote: Dear mailing list, I seem to have forgotten something about /var/log/security and newsyslog.conf. I get wrong mode after the trim. Excerpt from /etc/newsyslog.conf: /var/log/security 644 7 5000 * JC Are you sure that's the only line you have for /var/log/security in your /etc/newsyslog.conf file? The distributed config file has: /var/log/security 600 10100 * JC Obviously you have a different entry from that, but did you remove the original entry? Output from newsyslog -vn: chmod 600 /var/log/security.0.bz2 Why is the mode not 644? /etc/rc.d/syslogd restart and newsyslog restart have been performed. I tried changing the permissions-field in my newsyslog.conf from 600 to 644, and newsyslog worked correctly for me. -- Garance Alistair Drosehn = dros...@rpi.edu Senior Systems Programmer or g...@freebsd.org Rensselaer Polytechnic Institute; Troy, NY; USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org