Permissions on /var/log/ files

Chris Adams linux at cmadams.net
Wed Jul 17 15:01:59 UTC 2013


Once upon a time, Bryn M. Reeves <bmr at redhat.com> said:
> On 07/17/2013 03:47 PM, Suvayu Ali wrote:
> > I thought changing the permission on /var/log/messages will cause
> > problems with syslog, no?
> 
> Maybe you are thinking of logrotate? If you make changes by hand these
> will be undone when the logs are rotated if the configuration differs
> from the file system.

Again, nope, at least for common log files.  logrotate copies the
current ownership/permissions to the new files, unless otherwise
configured (and only a few files have that set in the default config;
they probably shouldn't either).

-- 
Chris Adams <linux at cmadams.net>


More information about the users mailing list