by AdmiralAsshat · 7y ago · 0 comments
I’m just guessing, but it might be easier to programmatically install a systemd cron job (and making sure it runs) than doing so for the old/conventional crond?
Yes, obviously cron would work. If systemd can do what this dev needs, what's the harm?
1. What is so bad about python in specific?
2. If you worry about root privileges, required for modifying the host file, you can use app armor to put the thing on a leash
Modifying system hosts configuration requires privileged file system access.
The mindset here should be default deny.
With the proper permissions something like this should be ok, but I'd tread lightly. Especially with something that dynamically updates your hosts file.