SELinux block timedatectl changes


Just found out this morning that if SELinux is in enforcing mode, it may block the timedatectl command to run in RHEL7. Once changing SELinux to permissive, the problem is gone.

Here is the error that I got when executing ‘timedatectl set-timezone Australia/Sydney’ in a bash script: Failed to issue method call: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s