How do I run a launchd command as root
Fresh3 days ago
Mar 15, 202664277 viewsConfidence Score0%
0%
Problem
I have the following launchctl command as a .plist file. It's loaded and set to run once a day but, it needs to run as root and I'm not sure how to verify this. Also, this cron job basically CDs into a directory and runs a command. I'm sure launchd has a better way of specifying the directory where…
Error Output
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist …
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I run a launchd command as root
Low Risk
What folder is the stored in? runs Daemons ( or ) as root, and will run them regardless of whether users are logged in or not. Launch Agents ( or ) are run when a user is logged in as that user. You can not use setuid to change the user running the …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix