Grant standard user access to system.log in

Valued Contributor

A number of years ago Apple changed access to the system.log file (and others) so that only admin level users could read them. In the name of 'security' I'm assuming. We don't allow non-standard users on our devices however, and one of our developers needs to be able to read the affected logs and can't.

I've tried editing the sudoers file and adding the user to access /System/Applications/Utilities/, and using a policy to try and open Console. But Console just complains and doesn't work. I could change the permissions on the effected log files, but that'll be reversed as soon as the OS rotates the logs...

Is there a simpler method, or something I'm not thinking of?

Allowing the user temporary admin access isn't a solution either unfortunately.


Contributor III

I would try adding an ACE/ACL, and see if that persists, though it might well not. Failing that, would it be acceptable to apply an ACE/ACL with inheritance to the folder /var/log? Inheritance might maintain access even as the logs rotated.

Valued Contributor

An ACE/ACL for /var/log high be acceptable. I'll look into it... TY!