View Single Post
  #1 (permalink)  
Old 21-Jun-2009, 07:35
Gian-Piero Gian-Piero is offline
Student Penguin
 
Join Date: Oct 2008
Location: Switzerland
Posts: 66
Gian-Piero hasn't been rated much yet
Default Launching a NTP server

I have installed on my PC an Expert mouseClock (Gude elektronik) receiving the time radio signal of DCF77 in Germany. It is functioning perfectly. My problem is the following: how do I start this service as root at boot?
I have written the following script in a file called ntpd in the /etc/init.d folder:
Quote:
#!/bin/bash
/usr/local/bin/ntpd
then I have made it executable:
Quote:
chmod 755 ntpd
I have seen that this file was copied in /etc/rc.d.
Then when I launch my system, this service is not started and I get the following line in the file /var/log/messages:
Quote:
Jun 21 14:02:01 Piantino-8 ntpd[4219]: ntpd 4.2.4@1.1437 Thu Jun 4 14:04:29 UTC 2009 (1)
Jun 21 14:02:01 Piantino-8 ntpd[4219]: ntpd: must be run as root, not uid 1000
How do I manage to run it as root?
Thank you in advance for your answer
Reply With Quote