News for hackers. Stuff that matters.
Re:Show HN: Turbo Boost Disable for macOS by aaronharnly on Tuesday February 11, 2020 @06:01AM (#22297559)
Looks neat! Shouldn't there be a better way to get the required permissions than asking the user to put their login password in a plaintext file?
Re:Show HN: Turbo Boost Disable for macOS by nicebill8 on Tuesday February 11, 2020 @06:03AM (#22297570)
There's likely a way to get root without having to read the password each time, this is just what I managed to hack together. If anyone has any ideas/suggestions I would be happy to fix this ASAP!
Re:Show HN: Turbo Boost Disable for macOS by georgebarnett on Tuesday February 11, 2020 @06:09AM (#22297588)
Allow the script to run under sudo without a password.
Re:Show HN: Turbo Boost Disable for macOS by smaccona on Tuesday February 11, 2020 @06:41AM (#22297710)
Looks like the author already addressed this - the README now has instructions on configuring /etc/sudoers to run the script without requiring the user’s password. See https://github.com/bradleymackey/turbo-boost-disable/issues/... although https://github.com/bradleymackey/turbo-boost-disable/issues/... points out another security hole with that approach.
Re:Show HN: Turbo Boost Disable for macOS by neilalexander on Tuesday February 11, 2020 @06:33AM (#22297678)
You could do this as a launchd service, which will run as root and will happen automatically with startup. No sudo nor brew required.

See /Library/LaunchDaemons and launchctl.