Permissions on /var/log/ files

Suvayu Ali fatkasuvayu+linux at gmail.com
Wed Jul 17 15:11:00 UTC 2013


On Wed, Jul 17, 2013 at 10:01:59AM -0500, Chris Adams wrote:
> 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).

Okay, I think I got confused somehow; learned something.  :)

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list