How to run from any scripting language a shell command under root user
We have a script that is executed by "nobody" user but it needs to access a shell command that requires "root" user permission. This article will show an example how to deal with this. The following guides are tested on my Linode server running Centos 7 64-bit Linux distribution.
Below is a simple Python script: