systemd warns if a service is marked executable, world-writable or world-inaccessible

Solution Verified - Updated -

Issue

  • systemd will warn if it finds a service file that has an executable bit, permissions are overly permissive or non-accessible for other users
    Jul 30 16:09:37 server01 systemd[1]: Configuration file /etc/systemd/system/custom-service.service is marked executable. Please remove executable permission bits. Proceeding anyway.
    Jul 30 16:09:37 server01 systemd[1]: Configuration file /etc/systemd/system/custom-service.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.
    Jul 30 16:09:37 server01 systemd[1]: Configuration file /etc/systemd/system/custom-service.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

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