This describes how to allow a user to run certain "mon" commands (https://support.itrsgroup.com/hc/en-us/articles/360020254933) with root privileges through sudo.
With OP5 Monitor version 8.0.7,and above a system group for Monitor operators is created, called "mon_operators". Sudo is configured to allow users in this group to run these commands with root privileges:
sudo mon start sudo mon stop sudo mon restart sudo mon node status sudo mon node list sudo mon node show sudo mon check exectime sudo mon check latency sudo mon check orphans
Add users to the "mon_operators" group to allow them to run the above commands, example:
# usermod --groups mon_operators --append <USERNAME>
If access to more mon commands, such as mon node add & mon node ctrl is required adding a user with full system administrator rights through sudo is recommended.