How to provide permission to non-root user to only perform stop/start/restart of Apache HTTPD service ?

Solution Verified - Updated -

Issue

  • How to allow non-root user to control Apache HTTPD systemd service ?
  • How to provide permission to non-root user to only perform stop/start/restart of Apache HTTPD service ?
  • Apache HTTPD service is running via root,how to allow non-root user to control the systemd service only?

Environment

  • Red Hat Enterprise Linux (RHEL) 7,8,9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content