Sample Header Ad - 728x90

How do I allow the logger command to run using non superuser (sudo) privileges?

1 vote
1 answer
90 views
I've been trying to run the logger command in terminal but it only works with sudo. How do I allow it to work in terminal without the sudo command? I'm trying to run the logger command from sleepwatcher (it doesn't seem to work in other apps like keyboard maestro). I've tried to update the privileges of the system.log file to allow more permissions. Perhaps it is a permissions problem because it runs in sudo mode and in terminal. This doesn't log anything when run in terminal (or sleepwatcher or keyboard maestro or anywhere else) logger -p info -t atreeon_test "hello" This does log correctly when run in terminal sudo logger -p info -t atreeon_test "hello";2
Asked by atreeon (548 rep)
Dec 21, 2023, 03:34 AM
Last activity: Apr 18, 2024, 04:14 PM