Page MenuHomeFreeBSD

Fix /etc/ntp mode
ClosedPublic

Authored by garga on Nov 13 2018, 12:39 PM.
Tags
None
Referenced Files
F150810825: D17973.id50418.diff
Sat, Apr 4, 5:19 AM
F150773033: D17973.diff
Fri, Apr 3, 11:23 PM
Unknown Object (File)
Tue, Mar 24, 2:24 AM
Unknown Object (File)
Sun, Mar 15, 10:34 AM
Unknown Object (File)
Wed, Mar 11, 8:14 PM
Unknown Object (File)
Mar 2 2026, 6:03 PM
Unknown Object (File)
Mar 2 2026, 5:29 AM
Unknown Object (File)
Feb 27 2026, 5:35 AM
Subscribers

Details

Summary

According to BSD.root.dist /etc/ntp should be 0700 but it's being created
as 0755 and every time installworld runs I see the following message:

etc/ntp:
        permissions (0700, 0755, modified)
crash:  permissions (0750, 0755, modified)

Change ntpd Makefile to make sure 0700 is used

MFC after: 3 days

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20783
Build 20181: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Nov 13 2018, 2:46 PM

Since I don't have a src bit, may I add "Approved by: imp"?

Since I don't have a src bit, may I add "Approved by: imp"?

Yes.

I assume that you've run buildworld / installworld and there's no ill effects from this and the files wind up having the proper permissions / ownership?

This revision was automatically updated to reflect the committed changes.
yuripv added inline comments.
head/usr.sbin/ntp/ntpd/Makefile
12 ↗(On Diff #50418)

Is ETN a typo or intentional?

garga added inline comments.
head/usr.sbin/ntp/ntpd/Makefile
12 ↗(On Diff #50418)

typo, I'll commit a fix. Thanks!