Linux Fehler: Cron <root@server.de> /bin/sh: 1: ntpdate: not found
Posted by Guenny onSollte euch auf Linux Systemen wie Ubuntu der Fehler Fehler: "/bin/sh: 1: ntpdate: not found" begegnen gibt es keinen Grund zur Panik, denn er ist schnell behoben
Der Zeitabgleich funktioniert nicht richtig, da "ntpdate" nicht gefunden wurde. Das liegt daran, dass der Pfad wahrscheinlich nicht gefunden wird.
ntpdate: not found Fehler beheben
Den richtigen Pfad suchen
whereis ntpdate
ntpdate: /usr/sbin/ntpdate /usr/share/man/man8/ntpdate.8.gz
Cronjob editieren
sudo crontab -evon
0 6 * * * ntpdate server1 server2 server3 server3
zu
0 6 * * * /usr/sbin/ntpdate server1 server2 server3 server3
crontab: installing new crontab
Und schon sollte ntpdate und somit eure Uhr richtig funktionieren.
Trackbacks
Trackback specific URI for this entryThis link is not meant to be clicked. It contains the trackback URI for this entry. You can use this URI to send ping- & trackbacks from your own blog to this entry. To copy the link, right click and select "Copy Shortcut" in Internet Explorer or "Copy Link Location" in Mozilla.
No Trackbacks
Comments
Display comments as Linear | ThreadedNo comments