yo icon indicating copy to clipboard operation
yo copied to clipboard

yo_sheduler not working as root user

Open vandehey opened this issue 4 years ago • 2 comments

I'm trying to use yo_scheduler via JAMF. When I'm on a system, I can run yo_scheduler as the logged in user and I get my notification. I cannot run the scheduler as root via CLI (so it shows up for the logged in user). Scripts in JAMF run as root, so that explains why my policy is failing as well. Is there anything else that I need to do to make the scheduler work, when running this as root?

vandehey avatar Mar 09 '20 21:03 vandehey

Hi @vandehey. This has always worked for me from Munki, also running as root. Let me investigate. Let me know if you can give me any further details.

sheagcraig avatar Oct 06 '20 16:10 sheagcraig

Thanks @sheagcraig . It's hard to say exactly what I was doing in March when I posted this. But I just looked in JAMF, and it looks like I set my policy to cat a script into place, chmod it, then run the script. So a sort of a script within a script is what it looks like on my end.

vandehey avatar Oct 06 '20 16:10 vandehey