#should i just cave and ask superuser on stackexchange.
Explore tagged Tumblr posts
Text
macos admin will have you googling "does applescript run as root ask for password" and "applescript with administrator privileges no password" and getting results like "here's how to put your password in the script in plain text" and "manually edit the sudoers file on 3k computers + then shit yorself and die"
#morrisounds#creating a launchdaemon that runs a script to check uptime and force a restart if a computer has been up for a week+#except to force a restart (and to TIME said restart) we need a sudo command#but do i need a password? the daemon would run it as root#which is what sudo does. or do i need to omit with administrator privileges#because it's already being run as root#should i just cave and ask superuser on stackexchange.#AND YES I COULD DO IT THROUGH JAMF. IF ANY OF THESE COMPUTERS WE NEED TO RESTART CHECKED IN#WHICH THEY DON'T
2 notes
·
View notes