Skip to content

Commit

Permalink
Merge pull request #18 from millerthomasj/ntpdRunAsUser
Browse files Browse the repository at this point in the history
Ntpd run as user
  • Loading branch information
rarenerd authored Apr 11, 2018
2 parents a9ffe88 + 7951b3e commit 1433aac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controls/2_2_special_purpose_services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
its(:content) { should match(/^RUNASUSER=ntp\s*(?:#.*)?$/) }
end

describe file('/etc/init.d/ntpd') do
its(:content) { should match(/daemon\s+(\S+\s+)-u ntp:ntp(?:\s+|\s?")/) }
end

describe file('/etc/sysconfig/ntpd') do
its(:content) { should match(/^OPTIONS="(?:.)?-u ntp:ntp\s*(?:.)?"\s*(?:#.*)?$/) }
end
Expand Down

0 comments on commit 1433aac

Please sign in to comment.