"Permission denied while opening PID file or unsafe symlink chain while restarting service in RHEL 7.7

Solution Verified - Updated -

Issue

  • "Permission denied while opening PID file or unsafe symlink chain: /var/run/chrony/chronyd.pid" is shown in rhel7.7.
  • Permission denied while opening PID file or unsafe symlink chain: /var/opt/rh/rh-nginx116/run/nginx/nginx.pid
  • nginx server fails to restart with systemctl restart rh-nginx116-nginx.service and the process does not get killed

Environment

  • Red Hat Enterprise Linux 7.7
  • systemd.
  • chronyd.
  • rh-nginx

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In