Restrict sudo Users Running Specific Commands for Apple’s OS X, BSD and GNU Linux in various ways.This is a good way to increase security. It is not that, always we want to Restrict sudo Users Running Specific Commands for Not Relying, but mostly it is to prevent unknowing done errors which basically can destroy a system.If one changes the group ownership to Apache (www-data) with sudo

Sudo Manual Note that unlike most commands run by sudo, the editor is run with the invoking user's environment unmodified. If, for some reason, sudo is unable to update a file with its edited version, the user will receive a warning and the edited copy will remain in a temporary file.-g group, --group=group Pro Terminal Commands: How and Why To Edit Sudoers on Aug 14, 2018

How to Control sudo Access on Linux

Jul 11, 2019

Pro Terminal Commands: How and Why To Edit Sudoers on

Jan 11, 2015 About Unix sudo and su commands - Knowledge Base Jun 18, 2019