Quote:
Originally Posted by
ron323232
Sure, that would be one good option.
Cheers.
Managing servers for over 40 years, I try to keep things simple. To me, simplicity is elegance.
In addition, I normally never have enough time to do all the things I need to do with IT systems, so I like things simple, self-documenting, and easy to understand so when I go back and have to revisit things months later, it's easy to understand and make changes. In coding and sys admin, I like self-documenting and descriptive, not cryptic or pedantic.
Naturally, you will need to make sure any scripts that are run from the root user
cron are only writeable, executable and perhaps only readable by root. The requirement would be similar if you set it up for
sudo, but it's similar to just run it from the root crontab.
sudo mostly give you logging when "people"
sudo to execute a privileged command, but since you know that root needs to execute this process in
cron, you really don't need
sudo for this.
Don't let
sudo become a "religion" for your system admin work (as some on the net would want to to "believe")