Op vrijdag 18 augustus 2017 21:01:23 CEST schreef Paul Groves:
Hi All,
I have come across the situation whereby I need to execute certain commands in my server management web page (written in PHP) that can only be run with sudo or as root. For example, adding / editing and removing root crontab entries.
What would be the correct and secure way to do this?
Thanks
Paul
Tip one: never ever have root access available directly over the internet. When root access is needed, use ssh for a "normal" user, not through password, but rather through keys, then use su(do). Tip two: use saltstack to manage to crontab jobs, or to execute certain php scripts through CLI. -- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org