You can set setUID bit for your binary:
# chown root your_binary
# chmod 4755 your_binary
Then it will be executed with root privelegies.
Have a great day,
Victor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------