-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong results with OpenNTPD #518
Comments
Do you have a particular suggestion for the detection? Or possibly a pull request to improve detection and what it runs? |
My idea would be to query the Openntpd servIce status (service openntpd (one)status. Also it should be detected that ntpq does time out. |
Another idea to distinguish OpenNTPD and ntpd: OpenNTPD is compiled with libre/openssl so the string "openssl" should be in the executable. |
Hi, |
Hi @abbapat - Sure, you can definitely become part of this and make a contribution. If you decide to pick it up, please ensure it is POSIX compatible shell script (not bash). Detection of the service should be OS independent as much as possible. Typically searching in strings is not preferred, but possibly it can be done by looking at something that both NTP daemons share (e.g. -V for version information, or --help that might give a good indication) |
Hey, thanks for the tips! Let me have a look. |
Hi @abbapat - Do you have time to pick this up? |
OpenNTPD always has the sub processes named "Classic" ntpd does only have a subprocess Additionally any installation comes with I'll prepare a pull request today. |
@mboelen Do you have some time to lookup at the pull request? |
Thanks @Varbin for your work on this. It has been merged. |
I'm using OpenNTPD instead of the default ntp on my FreeBSD server - when lynis analyses the ntp settings it tries to query information with
ntpq
which is (to my knowledge) is not possible with OpenNTPD.Lynis will slow down as
ntpq
takes a while fail.OS: FreeBSD 10.4
Lynis: 2.6.1 (768446e)
The text was updated successfully, but these errors were encountered: