LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-02-2004, 01:56 PM   #1
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Question ntp -- is it working?


it doesn't seem to me that ntp is working. i installed ntp-4.2.0 from source, and it installed ntpd in /usr/local/bin. i added /usr/local/bin/ntpd to /etc/rc.d/rc.local, and the daemon appears to start at startup:
Code:
[1] sero:~ $ ps ax |grep ntpd
  447 ?        SLs    0:00 /usr/local/bin/ntpd
my /etc/ntp.conf is:
Code:
restrict default noquery notrust nomodify
restrict 127.0.0.1
fudge 127.127.1.0 stratum 3
server sundial.columbia.edu
server ntp0.cornell.edu
driftfile /etc/ntp.drift
logfile /var/log/ntp.log
when i run ntpq -p i get:
Code:
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 filbert.cc.colu .RSTR.          16 u    -   64    0    0.000    0.000 4000.00
 cudns.cit.corne .RSTR.          16 u    -   64    0    0.000    0.000 4000.00
should those read exactly the same? i get those same numbers no matter what servers i put in there. when i manually set my time back a few minutes, it doesn't get updated even a day later. i even tried ntpdate as a last resort, it said, "no servers can be used, exiting." how can i get this working?

~~~~~~~~~~~~~~~~~~~
Code:
[8] sero:~ $ man ntpd
No manual entry for ntpd

[9] sero:~ $ man ntp
No manual entry for ntp

[10] sero:~ $ man ntp.conf
No manual entry for ntp.conf
 
Old 05-02-2004, 02:12 PM   #2
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
Try adding
Code:
sundial.columbia.edu
ntp0.cornell.edu
to your /etc/ntp/step-timers file.
 
Old 05-02-2004, 02:25 PM   #3
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
i didn't have one, so i made one, but it didn't help.
 
Old 05-02-2004, 02:53 PM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
okay, got it working. i commented out that first line in /etc/ntp.conf. i'll just have to do some reading to see if that's safe or what those options do. thanks.

>edit: it seems to be the notrust option causing the problem. sux that there's no man pages for ntp.

Last edited by synaptical; 05-02-2004 at 03:02 PM.
 
Old 08-23-2004, 03:50 PM   #5
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Quote:
Originally posted by TheOther1
Try adding
Code:
sundial.columbia.edu
ntp0.cornell.edu
to your /etc/ntp/step-timers file.
Adding those two to my step-tickers [sic] file fixed my ntpd problem! Thanks. I had no idea how to specify a different time server without reinstalling and choosing from the list I was presented with. This saved me a lot of
time and potential grief.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help with NTP stevenhasty Slackware 6 02-16-2005 11:04 AM
NTP cannot work with timeserver, NTP-d can jerryvapps Linux - Networking 0 08-04-2004 02:04 PM
NTP cannot use server, NTP -d can jerryvapps Linux - Newbie 0 07-28-2004 02:22 PM
Network Time Protocol (NTP): Are you sure it's working? mchirico LinuxQuestions.org Member Success Stories 0 06-12-2004 06:00 PM
Help with ntp triley Linux - General 1 01-30-2004 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration