Permissions on /var/log/ files
Bryn M. Reeves
bmr at redhat.com
Wed Jul 17 14:57:08 UTC 2013
On 07/17/2013 03:47 PM, Suvayu Ali wrote:
> On Wed, Jul 17, 2013 at 09:29:04AM -0500, Chris Adams wrote:
>> Once upon a time, Timothy Murphy <gayleard at alice.it> said:
>>> Will it cause any problems if I change the permissions on these files?
>>
>> Nope, been doing it for years.
>
> 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.
You can solve this by setting the permissions and ownership in the
relevant logrotate.{conf,d/} file.
Alternately you can use ACLs on the log files to open up access to
specific users and groups. Recent (>F14) logrotates should preserve ACLs
when rotating files (bz#666677).
Regards,
Bryn.
More information about the users
mailing list