Project

General

Profile

Actions

Bug #12303

closed

Time settings directive configuration not accessible to non-root users

Added by Rob Pomeroy over 6 years ago. Updated over 6 years ago.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Very Small
Priority:
79
Name check:
Fix check:
Regression:

Description

Consistently on several Ubuntu 16.04 servers, the "Time settings version 3.2" directive sets the timezone correctly for the root user, but not for other users.

Here's an example of a server, which Rudder claims is fully compliant:

rob.pomeroy@webdbb2:~$ date
Wed Mar 28 16:15:14 UTC 2018
rob.pomeroy@webdbb2:~$ sudo date
Wed Mar 28 17:15:20 BST 2018
rob.pomeroy@webdbb2:~$ cat /etc/timezone
Europe/London

This server is configured to timezone Europe/London, which is currently on daylight saving time (British Summer Time).

Running dpkg-reconfigure -f noninteractive tzdata fixes the problem for all users. So clearly, it does something that the Rudder directive misses. The other command that's popular on Ubuntu, "timedatectl set-timezone Europe/London" , does not fix the problem.

Note: we're not setting TZ in profiles or bashrcs, or anything like that.

Actions

Also available in: Atom PDF