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:
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