You want to allow a user to run one command, as root user.
To allow a user access to run stuff as root, just login as root and then add the following line to /etc/sudoers.
For example to allow user marcus access on bree, to restart, stop, start or check apache:
To allow all access on all boxes:
[tags]sudo, switch user do, temporary UNIX authorisation, Unix Coding School[/tags]
[/reference]If you have found my website useful, please consider buying me a coffee below 😉