All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit eb6d9b16 authored by Mike Hibler's avatar Mike Hibler

For Linux, make sure that the NTP drift file is owned by "ntp".

Otherwise, the daemon cannot write it!
parent 7fd8c3e5
#!/usr/bin/perl -w
# Copyright (c) 2000-2009 University of Utah and the Flux Group.
# Copyright (c) 2000-2013 University of Utah and the Flux Group.
......@@ -238,6 +238,10 @@ foreach my $line (@ntpinfo) {
open(DRIFT, "> $driftfile");
print DRIFT "$1\n";
# if we are root and there is an ntp user, chown the file to that
if ($UID == 0 && system("grep -q '^ntp:' /etc/passwd") == 0) {
system("chown ntp $driftfile");
last SWITCH1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment