Posted on 11-16-2023 11:43 AM
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/Console.app, 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.
Posted on 11-17-2023 10:47 AM
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.
Posted on 11-17-2023 10:52 AM
An ACE/ACL for /var/log high be acceptable. I'll look into it... TY!
Posted on 04-23-2024 12:50 PM
Any updates on this?
Posted on 04-24-2024 05:19 AM
Unfortunately, no. The best work around we found is for our developers to use Apple Configurator to view the log files they need. It works... but not ideal.