Sudo to preserve invoker ownership

Latest response

Hello,

Countless times as admins, we are asked to provide root privileges.
Our workaround is always to provide sudo for the specified commands needed.
For Example, sudo for yum/rpm or sudo systemctl
But that unfortunately makes the root as the owner of the created files/services.

Is there anyway for sudo to run but preserve the invoker user ?

Responses