Unable to set timezone with timedatectl when selinux is in "Enforcing mode".

Solution Verified - Updated -

Issue

  • timedatectl gives error asFailed to set time zone: Access denied while setting timezone.
[root@test]# timedatectl set-timezone Europe/Luxembourg
Failed to set time zone: Access denied

Environment

  • Red Hat Enterprise Linux 7

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